From 28e67be84c418cb661e7c32f2326d0e665320a1e Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 30 Jan 2018 16:39:05 +0100 Subject: One central place to generate uids --- common/storage_common.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/storage_common.cpp') 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 @@ #include "storage.h" #include "log.h" -#include +#include "utils.h" QDebug& operator<<(QDebug &dbg, const Sink::Storage::DataStore::Error &error) { @@ -212,7 +212,7 @@ qint64 DataStore::revisionFromKey(const QByteArray &key) QByteArray DataStore::generateUid() { - return QUuid::createUuid().toByteArray(); + return createUuid(); } DataStore::NamedDatabase DataStore::mainDatabase(const DataStore::Transaction &t, const QByteArray &type) -- cgit v1.2.3