summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-06-27 23:15:27 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-06-27 23:15:27 +0200
commitf3eb08a93f093ebe4ac97221993103c4f12c6212 (patch)
tree9b1fc6e69d8051e75c9056affa757950393277f9 /common
parent06f996a139a5ac660e98163fac796f94c1a6468f (diff)
downloadsink-f3eb08a93f093ebe4ac97221993103c4f12c6212.tar.gz
sink-f3eb08a93f093ebe4ac97221993103c4f12c6212.zip
Ensure we have the right facade
Diffstat (limited to 'common')
-rw-r--r--common/facade.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/facade.cpp b/common/facade.cpp
index 38ec1dc..9c14a23 100644
--- a/common/facade.cpp
+++ b/common/facade.cpp
@@ -104,6 +104,7 @@ KAsync::Job<void> GenericFacade<DomainType>::remove(const DomainType &domainObje
104template <class DomainType> 104template <class DomainType>
105QPair<KAsync::Job<void>, typename ResultEmitter<typename DomainType::Ptr>::Ptr> GenericFacade<DomainType>::load(const Sink::Query &query, const Log::Context &ctx) 105QPair<KAsync::Job<void>, typename ResultEmitter<typename DomainType::Ptr>::Ptr> GenericFacade<DomainType>::load(const Sink::Query &query, const Log::Context &ctx)
106{ 106{
107 Q_ASSERT(DomainType::name == query.type() || query.type().isEmpty());
107 // The runner lives for the lifetime of the query 108 // The runner lives for the lifetime of the query
108 auto runner = new QueryRunner<DomainType>(query, mResourceContext, bufferTypeForDomainType(), ctx); 109 auto runner = new QueryRunner<DomainType>(query, mResourceContext, bufferTypeForDomainType(), ctx);
109 runner->setResultTransformation(mResultTransformation); 110 runner->setResultTransformation(mResultTransformation);