From 2d8f8861eeb1c7b5888a65ab07d51b0419feeb3e Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 5 Jun 2016 21:32:21 +0200 Subject: A central place to generate uuid's --- common/pipeline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/pipeline.cpp') diff --git a/common/pipeline.cpp b/common/pipeline.cpp index 100f158..049d228 100644 --- a/common/pipeline.cpp +++ b/common/pipeline.cpp @@ -178,7 +178,7 @@ KAsync::Job Pipeline::newEntity(void const *command, size_t size) } if (key.isEmpty()) { - key = QUuid::createUuid().toString().toUtf8(); + key = Sink::Storage::generateUid(); } Q_ASSERT(!key.isEmpty()); const qint64 newRevision = Storage::maxRevision(d->transaction) + 1; -- cgit v1.2.3