diff options
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 fd86635..b9f11f8 100644 --- a/common/messagequeue.cpp +++ b/common/messagequeue.cpp | |||
@@ -112,7 +112,7 @@ KAsync::Job<void> MessageQueue::dequeueBatch(int maxBatchSize, const std::functi | |||
112 | .openDatabase() | 112 | .openDatabase() |
113 | .scan("", | 113 | .scan("", |
114 | [this, resultHandler, resultCount, &count, maxBatchSize, &waitCondition](const QByteArray &key, const QByteArray &value) -> bool { | 114 | [this, resultHandler, resultCount, &count, maxBatchSize, &waitCondition](const QByteArray &key, const QByteArray &value) -> bool { |
115 | if (Sink::Storage::isInternalKey(key) || mPendingRemoval.contains(key)) { | 115 | if (mPendingRemoval.contains(key)) { |
116 | return true; | 116 | return true; |
117 | } | 117 | } |
118 | *resultCount += 1; | 118 | *resultCount += 1; |
@@ -158,7 +158,7 @@ bool MessageQueue::isEmpty() | |||
158 | if (db) { | 158 | if (db) { |
159 | db.scan("", | 159 | db.scan("", |
160 | [&count, this](const QByteArray &key, const QByteArray &value) -> bool { | 160 | [&count, this](const QByteArray &key, const QByteArray &value) -> bool { |
161 | if (!Sink::Storage::isInternalKey(key) && !mPendingRemoval.contains(key)) { | 161 | if (!mPendingRemoval.contains(key)) { |
162 | count++; | 162 | count++; |
163 | return false; | 163 | return false; |
164 | } | 164 | } |