diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-01-30 16:39:05 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-01-30 16:39:05 +0100 |
commit | 28e67be84c418cb661e7c32f2326d0e665320a1e (patch) | |
tree | d2a39540fd4d8aebaec9489ce1e3ebc1c70c7ecc /common/storage_common.cpp | |
parent | 74d357f533b49b0d1eeb72606303cfd8a16fb20e (diff) | |
download | sink-28e67be84c418cb661e7c32f2326d0e665320a1e.tar.gz sink-28e67be84c418cb661e7c32f2326d0e665320a1e.zip |
One central place to generate uids
Diffstat (limited to 'common/storage_common.cpp')
-rw-r--r-- | common/storage_common.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/storage_common.cpp b/common/storage_common.cpp index 830eff2..78d4c84 100644 --- a/common/storage_common.cpp +++ b/common/storage_common.cpp | |||
@@ -22,7 +22,7 @@ | |||
22 | #include "storage.h" | 22 | #include "storage.h" |
23 | 23 | ||
24 | #include "log.h" | 24 | #include "log.h" |
25 | #include <QUuid> | 25 | #include "utils.h" |
26 | 26 | ||
27 | QDebug& operator<<(QDebug &dbg, const Sink::Storage::DataStore::Error &error) | 27 | QDebug& operator<<(QDebug &dbg, const Sink::Storage::DataStore::Error &error) |
28 | { | 28 | { |
@@ -212,7 +212,7 @@ qint64 DataStore::revisionFromKey(const QByteArray &key) | |||
212 | 212 | ||
213 | QByteArray DataStore::generateUid() | 213 | QByteArray DataStore::generateUid() |
214 | { | 214 | { |
215 | return QUuid::createUuid().toByteArray(); | 215 | return createUuid(); |
216 | } | 216 | } |
217 | 217 | ||
218 | DataStore::NamedDatabase DataStore::mainDatabase(const DataStore::Transaction &t, const QByteArray &type) | 218 | DataStore::NamedDatabase DataStore::mainDatabase(const DataStore::Transaction &t, const QByteArray &type) |