diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-08-10 01:18:34 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-08-10 01:18:55 +0200 |
commit | 51c4e476cdde1eedb73dd1e0f0aa89e3d76292fc (patch) | |
tree | 9782792dc6d90918311a038cb81dffbdb02822b1 /common/storage.h | |
parent | bee6d7d793732d4ebbcb7f48b7622bd124f22f13 (diff) | |
download | sink-51c4e476cdde1eedb73dd1e0f0aa89e3d76292fc.tar.gz sink-51c4e476cdde1eedb73dd1e0f0aa89e3d76292fc.zip |
const scan and public default ctor
Diffstat (limited to 'common/storage.h')
-rw-r--r-- | common/storage.h | 4 |
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 | }; |