diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-11-19 18:14:09 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-11-19 18:14:09 +0100 |
commit | c4a6746e4420b580fe35cc89783de4dbc3205ac6 (patch) | |
tree | e58905f13653d44671ca0e88388f83d26c5a3a28 /tests/clientapitest.cpp | |
parent | 8d5684292ef92f32487ba32df716a00c4a0841b5 (diff) | |
download | sink-c4a6746e4420b580fe35cc89783de4dbc3205ac6.tar.gz sink-c4a6746e4420b580fe35cc89783de4dbc3205ac6.zip |
The parent is always an object, so we might as well make that explicit
Diffstat (limited to 'tests/clientapitest.cpp')
-rw-r--r-- | tests/clientapitest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/clientapitest.cpp b/tests/clientapitest.cpp index 9202e29..ce11221 100644 --- a/tests/clientapitest.cpp +++ b/tests/clientapitest.cpp | |||
@@ -30,7 +30,7 @@ public: | |||
30 | KAsync::Job<void> load(const Akonadi2::Query &query, Akonadi2::ResultProviderInterface<typename T::Ptr> &resultProvider) Q_DECL_OVERRIDE | 30 | KAsync::Job<void> load(const Akonadi2::Query &query, Akonadi2::ResultProviderInterface<typename T::Ptr> &resultProvider) Q_DECL_OVERRIDE |
31 | { | 31 | { |
32 | capturedResultProvider = &resultProvider; | 32 | capturedResultProvider = &resultProvider; |
33 | resultProvider.setFetcher([query, &resultProvider, this](const QByteArray &) { | 33 | resultProvider.setFetcher([query, &resultProvider, this](const typename T::Ptr &) { |
34 | for (const auto &res : results) { | 34 | for (const auto &res : results) { |
35 | qDebug() << "Parent filter " << query.propertyFilter.value("parent").toByteArray() << res->identifier(); | 35 | qDebug() << "Parent filter " << query.propertyFilter.value("parent").toByteArray() << res->identifier(); |
36 | if (!query.propertyFilter.contains("parent") || query.propertyFilter.value("parent").toByteArray() == res->getProperty("parent").toByteArray()) { | 36 | if (!query.propertyFilter.contains("parent") || query.propertyFilter.value("parent").toByteArray() == res->getProperty("parent").toByteArray()) { |