summaryrefslogtreecommitdiffstats
path: root/common/resultprovider.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-05-09 10:22:00 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-05-09 10:22:00 +0200
commit8a5b4510aedc92749424086067e45d3be52c5e07 (patch)
tree1f847449f395dde39d8013bdf501ea4e2626dbcb /common/resultprovider.h
parent0079a50028413ce7e95b74505c9e1b144e0626be (diff)
downloadsink-8a5b4510aedc92749424086067e45d3be52c5e07.tar.gz
sink-8a5b4510aedc92749424086067e45d3be52c5e07.zip
Deal with null results (as provided by the mailtransport)
Diffstat (limited to 'common/resultprovider.h')
-rw-r--r--common/resultprovider.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/resultprovider.h b/common/resultprovider.h
index 5561ff2..b7d9272 100644
--- a/common/resultprovider.h
+++ b/common/resultprovider.h
@@ -342,6 +342,7 @@ public:
342 342
343 void addEmitter(const typename ResultEmitter<DomainType>::Ptr &emitter) 343 void addEmitter(const typename ResultEmitter<DomainType>::Ptr &emitter)
344 { 344 {
345 Q_ASSERT(emitter);
345 emitter->onAdded([this](const DomainType &value) { this->add(value); }); 346 emitter->onAdded([this](const DomainType &value) { this->add(value); });
346 emitter->onModified([this](const DomainType &value) { this->modify(value); }); 347 emitter->onModified([this](const DomainType &value) { this->modify(value); });
347 emitter->onRemoved([this](const DomainType &value) { this->remove(value); }); 348 emitter->onRemoved([this](const DomainType &value) { this->remove(value); });