From 3dd90236e7927028ff5c98635f8075189c9869c2 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Mon, 15 Dec 2014 19:28:05 +0100 Subject: namespace everything in libs with Akonadi2 --- dummyresource/facade.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'dummyresource') diff --git a/dummyresource/facade.cpp b/dummyresource/facade.cpp index 44056f8..668749e 100644 --- a/dummyresource/facade.cpp +++ b/dummyresource/facade.cpp @@ -44,7 +44,8 @@ void DummyResourceFacade::remove(const Akonadi2::Domain::Event &domainObject) //-how do we free/munmap the data if we don't know when no one references it any longer? => no munmap needed, but read transaction to keep pointer alive //-we could bind the lifetime to the query //=> perhaps do heap allocate and use smart pointer? -class DummyEventAdaptor : public Akonadi2::Domain::Event { +class DummyEventAdaptor : public Akonadi2::Domain::Event +{ public: DummyEventAdaptor(const QString &resource, const QString &identifier, qint64 revision) :Akonadi2::Domain::Event(resource, identifier, revision) @@ -71,13 +72,13 @@ public: DummyEvent const *buffer; //Keep query alive so values remain valid - QSharedPointer storage; + QSharedPointer storage; }; void DummyResourceFacade::load(const Akonadi2::Query &query, const std::function &resultCallback) { qDebug() << "load called"; - auto storage = QSharedPointer::create(Akonadi2::Store::storageLocation(), "dummyresource"); + auto storage = QSharedPointer::create(Akonadi2::Store::storageLocation(), "dummyresource"); //Compose some functions to make query matching fast. //This way we can process the query once, and convert all values into something that can be compared quickly -- cgit v1.2.3