summaryrefslogtreecommitdiffstats
path: root/dummyresource
diff options
context:
space:
mode:
Diffstat (limited to 'dummyresource')
-rw-r--r--dummyresource/facade.cpp2
-rw-r--r--dummyresource/resourcefactory.cpp5
2 files changed, 3 insertions, 4 deletions
diff --git a/dummyresource/facade.cpp b/dummyresource/facade.cpp
index 79763ef..e0d27dc 100644
--- a/dummyresource/facade.cpp
+++ b/dummyresource/facade.cpp
@@ -138,7 +138,7 @@ void DummyResourceFacade::readValue(QSharedPointer<Akonadi2::Storage> storage, c
138 storage->scan(key.data(), key.size(), [=](void *keyValue, int keySize, void *dataValue, int dataSize) -> bool { 138 storage->scan(key.data(), key.size(), [=](void *keyValue, int keySize, void *dataValue, int dataSize) -> bool {
139 139
140 //Skip internals 140 //Skip internals
141 if (QByteArray::fromRawData(static_cast<char*>(keyValue), keySize).startsWith("__internal")) { 141 if (Akonadi2::Storage::isInternalKey(keyValue, keySize)) {
142 return true; 142 return true;
143 } 143 }
144 144
diff --git a/dummyresource/resourcefactory.cpp b/dummyresource/resourcefactory.cpp
index aefd66f..e5019f2 100644
--- a/dummyresource/resourcefactory.cpp
+++ b/dummyresource/resourcefactory.cpp
@@ -113,9 +113,8 @@ public:
113 mProcessingLock(false) 113 mProcessingLock(false)
114 { 114 {
115 for (auto queue : mCommandQueues) { 115 for (auto queue : mCommandQueues) {
116 bool ret = connect(queue, &MessageQueue::messageReady, this, &Processor::process); 116 const bool ret = connect(queue, &MessageQueue::messageReady, this, &Processor::process);
117 Q_UNUSED(ret); 117 Q_UNUSED(ret);
118 Q_ASSERT(ret);
119 } 118 }
120 } 119 }
121 120
@@ -298,7 +297,7 @@ void findByRemoteId(QSharedPointer<Akonadi2::Storage> storage, const QString &ri
298 //TODO lookup in rid index instead of doing a full scan 297 //TODO lookup in rid index instead of doing a full scan
299 const std::string ridString = rid.toStdString(); 298 const std::string ridString = rid.toStdString();
300 storage->scan("", [&](void *keyValue, int keySize, void *dataValue, int dataSize) -> bool { 299 storage->scan("", [&](void *keyValue, int keySize, void *dataValue, int dataSize) -> bool {
301 if (QByteArray::fromRawData(static_cast<char*>(keyValue), keySize).startsWith("__internal")) { 300 if (Akonadi2::Storage::isInternalKey(keyValue, keySize)) {
302 return true; 301 return true;
303 } 302 }
304 303