diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-06-05 21:32:21 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-06-05 21:32:21 +0200 |
commit | 2d8f8861eeb1c7b5888a65ab07d51b0419feeb3e (patch) | |
tree | 10ceae2a5c7a85ba02ca2d9b603e2cabea37aba4 /common/remoteidmap.cpp | |
parent | 4d4028af66144535634ec8c9c4aa229758b57372 (diff) | |
download | sink-2d8f8861eeb1c7b5888a65ab07d51b0419feeb3e.tar.gz sink-2d8f8861eeb1c7b5888a65ab07d51b0419feeb3e.zip |
A central place to generate uuid's
Diffstat (limited to 'common/remoteidmap.cpp')
-rw-r--r-- | common/remoteidmap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/remoteidmap.cpp b/common/remoteidmap.cpp index f72369d..bbcd641 100644 --- a/common/remoteidmap.cpp +++ b/common/remoteidmap.cpp | |||
@@ -56,7 +56,7 @@ QByteArray RemoteIdMap::resolveRemoteId(const QByteArray &bufferType, const QByt | |||
56 | Index index("rid.mapping." + bufferType, mTransaction); | 56 | Index index("rid.mapping." + bufferType, mTransaction); |
57 | QByteArray sinkId = index.lookup(remoteId); | 57 | QByteArray sinkId = index.lookup(remoteId); |
58 | if (sinkId.isEmpty()) { | 58 | if (sinkId.isEmpty()) { |
59 | sinkId = QUuid::createUuid().toString().toUtf8(); | 59 | sinkId = Sink::Storage::generateUid(); |
60 | index.add(remoteId, sinkId); | 60 | index.add(remoteId, sinkId); |
61 | Index("localid.mapping." + bufferType, mTransaction).add(sinkId, remoteId); | 61 | Index("localid.mapping." + bufferType, mTransaction).add(sinkId, remoteId); |
62 | } | 62 | } |