diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-13 14:43:37 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-13 14:43:37 +0200 |
commit | a3c3fb61e08523a563ce3cba86dc50c9c5fc2c5d (patch) | |
tree | d2d8737bb7758fbf521909a367e9188b9c5690f6 /common/messagequeue.cpp | |
parent | 60965ca1431b2b3bed4f49e6bf1a9d5e5d86a3d9 (diff) | |
download | sink-a3c3fb61e08523a563ce3cba86dc50c9c5fc2c5d.tar.gz sink-a3c3fb61e08523a563ce3cba86dc50c9c5fc2c5d.zip |
Fixed new diagnostics errors
Diffstat (limited to 'common/messagequeue.cpp')
-rw-r--r-- | common/messagequeue.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/messagequeue.cpp b/common/messagequeue.cpp index a6e44e3..3567a10 100644 --- a/common/messagequeue.cpp +++ b/common/messagequeue.cpp | |||
@@ -55,7 +55,7 @@ void MessageQueue::startTransaction() | |||
55 | return; | 55 | return; |
56 | } | 56 | } |
57 | processRemovals(); | 57 | processRemovals(); |
58 | mWriteTransaction = std::move(mStorage.createTransaction(Sink::Storage::ReadWrite)); | 58 | mWriteTransaction = mStorage.createTransaction(Sink::Storage::ReadWrite); |
59 | } | 59 | } |
60 | 60 | ||
61 | void MessageQueue::commit() | 61 | void MessageQueue::commit() |
@@ -87,7 +87,7 @@ void MessageQueue::processRemovals() | |||
87 | if (mWriteTransaction) { | 87 | if (mWriteTransaction) { |
88 | return; | 88 | return; |
89 | } | 89 | } |
90 | auto transaction = std::move(mStorage.createTransaction(Sink::Storage::ReadWrite)); | 90 | auto transaction = mStorage.createTransaction(Sink::Storage::ReadWrite); |
91 | for (const auto &key : mPendingRemoval) { | 91 | for (const auto &key : mPendingRemoval) { |
92 | transaction.openDatabase().remove(key); | 92 | transaction.openDatabase().remove(key); |
93 | } | 93 | } |