summaryrefslogtreecommitdiffstats
path: root/common/store.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-01-30 16:39:05 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-01-30 16:39:05 +0100
commit28e67be84c418cb661e7c32f2326d0e665320a1e (patch)
treed2a39540fd4d8aebaec9489ce1e3ebc1c70c7ecc /common/store.cpp
parent74d357f533b49b0d1eeb72606303cfd8a16fb20e (diff)
downloadsink-28e67be84c418cb661e7c32f2326d0e665320a1e.tar.gz
sink-28e67be84c418cb661e7c32f2326d0e665320a1e.zip
One central place to generate uids
Diffstat (limited to 'common/store.cpp')
-rw-r--r--common/store.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/store.cpp b/common/store.cpp
index 2fa62d6..a2204fc 100644
--- a/common/store.cpp
+++ b/common/store.cpp
@@ -22,7 +22,6 @@
22 22
23#include <QTime> 23#include <QTime>
24#include <QAbstractItemModel> 24#include <QAbstractItemModel>
25#include <QUuid>
26#include <functional> 25#include <functional>
27#include <memory> 26#include <memory>
28 27
@@ -35,6 +34,7 @@
35#include "modelresult.h" 34#include "modelresult.h"
36#include "storage.h" 35#include "storage.h"
37#include "log.h" 36#include "log.h"
37#include "utils.h"
38 38
39#define ASSERT_ENUMS_MATCH(A, B) Q_STATIC_ASSERT_X(static_cast<int>(A) == static_cast<int>(B), "The enum values must match"); 39#define ASSERT_ENUMS_MATCH(A, B) Q_STATIC_ASSERT_X(static_cast<int>(A) == static_cast<int>(B), "The enum values must match");
40 40
@@ -73,7 +73,7 @@ QString Store::storageLocation()
73 73
74QString Store::getTemporaryFilePath() 74QString Store::getTemporaryFilePath()
75{ 75{
76 return Sink::temporaryFileLocation() + "/" + QUuid::createUuid().toString(); 76 return Sink::temporaryFileLocation() + "/" + createUuid();
77} 77}
78 78
79 79