summaryrefslogtreecommitdiffstats
path: root/common/storage.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/storage.h')
-rw-r--r--common/storage.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/storage.h b/common/storage.h
index 77f11f9..fd35274 100644
--- a/common/storage.h
+++ b/common/storage.h
@@ -54,6 +54,7 @@ public:
54 class Transaction 54 class Transaction
55 { 55 {
56 public: 56 public:
57 Transaction();
57 ~Transaction(); 58 ~Transaction();
58 bool commit(const std::function<void(const Storage::Error &error)> &errorHandler = std::function<void(const Storage::Error &error)>()); 59 bool commit(const std::function<void(const Storage::Error &error)> &errorHandler = std::function<void(const Storage::Error &error)>());
59 void abort(); 60 void abort();
@@ -79,7 +80,7 @@ public:
79 */ 80 */
80 int scan(const QByteArray &k, 81 int scan(const QByteArray &k,
81 const std::function<bool(const QByteArray &key, const QByteArray &value)> &resultHandler, 82 const std::function<bool(const QByteArray &key, const QByteArray &value)> &resultHandler,
82 const std::function<void(const Storage::Error &error)> &errorHandler = std::function<void(const Storage::Error &error)>()); 83 const std::function<void(const Storage::Error &error)> &errorHandler = std::function<void(const Storage::Error &error)>()) const;
83 84
84 Transaction(Transaction&& other) : d(other.d) 85 Transaction(Transaction&& other) : d(other.d)
85 { 86 {
@@ -96,7 +97,6 @@ public:
96 Transaction& operator=(Transaction& other); 97 Transaction& operator=(Transaction& other);
97 friend Storage; 98 friend Storage;
98 class Private; 99 class Private;
99 Transaction();
100 Transaction(Private*); 100 Transaction(Private*);
101 Private *d; 101 Private *d;
102 }; 102 };