diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-03-27 16:47:40 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-03-31 11:11:08 +0200 |
commit | 95fab4cac8217446684cfe6bd3f0218b0655530b (patch) | |
tree | 607b8beada461d46ae751a11fe7e9459d08033b1 /dummyresource | |
parent | 7642433a4fafd2ccf7e8b43c81ec18282f544a3b (diff) | |
download | sink-95fab4cac8217446684cfe6bd3f0218b0655530b.tar.gz sink-95fab4cac8217446684cfe6bd3f0218b0655530b.zip |
Minor cleanup, less warnings.
Diffstat (limited to 'dummyresource')
-rw-r--r-- | dummyresource/domainadaptor.h | 1 | ||||
-rw-r--r-- | dummyresource/resourcefactory.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/dummyresource/domainadaptor.h b/dummyresource/domainadaptor.h index 239ceca..9474176 100644 --- a/dummyresource/domainadaptor.h +++ b/dummyresource/domainadaptor.h | |||
@@ -10,6 +10,7 @@ class DummyEventAdaptorFactory : public DomainTypeAdaptorFactory<Akonadi2::Domai | |||
10 | { | 10 | { |
11 | public: | 11 | public: |
12 | DummyEventAdaptorFactory(); | 12 | DummyEventAdaptorFactory(); |
13 | virtual ~DummyEventAdaptorFactory() {}; | ||
13 | virtual QSharedPointer<Akonadi2::Domain::BufferAdaptor> createAdaptor(const Akonadi2::Entity &entity); | 14 | virtual QSharedPointer<Akonadi2::Domain::BufferAdaptor> createAdaptor(const Akonadi2::Entity &entity); |
14 | virtual void createBuffer(const Akonadi2::Domain::Event &event, flatbuffers::FlatBufferBuilder &fbb); | 15 | virtual void createBuffer(const Akonadi2::Domain::Event &event, flatbuffers::FlatBufferBuilder &fbb); |
15 | }; | 16 | }; |
diff --git a/dummyresource/resourcefactory.cpp b/dummyresource/resourcefactory.cpp index fab3df9..d1beb1d 100644 --- a/dummyresource/resourcefactory.cpp +++ b/dummyresource/resourcefactory.cpp | |||
@@ -248,7 +248,7 @@ void DummyResource::configurePipeline(Akonadi2::Pipeline *pipeline) | |||
248 | auto eventFactory = QSharedPointer<DummyEventAdaptorFactory>::create(); | 248 | auto eventFactory = QSharedPointer<DummyEventAdaptorFactory>::create(); |
249 | //FIXME we should setup for each resource entity type, not for each domain type | 249 | //FIXME we should setup for each resource entity type, not for each domain type |
250 | //i.e. If a resource stores tags as part of each message it needs to update the tag index | 250 | //i.e. If a resource stores tags as part of each message it needs to update the tag index |
251 | //TODO setup preprocessors for each domain type and pipeline type allowing full customization | 251 | //TODO setup preprocessors for each resource entity type and pipeline type allowing full customization |
252 | //Eventually the order should be self configuring, for now it's hardcoded. | 252 | //Eventually the order should be self configuring, for now it's hardcoded. |
253 | auto eventIndexer = new SimpleProcessor("summaryprocessor", [eventFactory](const Akonadi2::PipelineState &state, const Akonadi2::Entity &entity) { | 253 | auto eventIndexer = new SimpleProcessor("summaryprocessor", [eventFactory](const Akonadi2::PipelineState &state, const Akonadi2::Entity &entity) { |
254 | auto adaptor = eventFactory->createAdaptor(entity); | 254 | auto adaptor = eventFactory->createAdaptor(entity); |