From b56df00a4e9a874b96ad53b24a0e3b54e2d967c5 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 8 Nov 2015 21:07:19 +0100 Subject: Fixed warnings --- common/facade.h | 2 +- examples/dummyresource/resourcefactory.cpp | 1 - tests/genericresourcetest.cpp | 6 ------ 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/common/facade.h b/common/facade.h index 13734f0..643ebec 100644 --- a/common/facade.h +++ b/common/facade.h @@ -82,7 +82,7 @@ private: qint64 mLatestRevision; }; -static ResultSet fullScan(const Akonadi2::Storage::Transaction &transaction, const QByteArray &bufferType) +static inline ResultSet fullScan(const Akonadi2::Storage::Transaction &transaction, const QByteArray &bufferType) { //TODO use a result set with an iterator, to read values on demand QVector keys; diff --git a/examples/dummyresource/resourcefactory.cpp b/examples/dummyresource/resourcefactory.cpp index b742611..397ca5f 100644 --- a/examples/dummyresource/resourcefactory.cpp +++ b/examples/dummyresource/resourcefactory.cpp @@ -230,4 +230,3 @@ void DummyResourceFactory::registerFacades(Akonadi2::FacadeFactory &factory) factory.registerFacade(PLUGIN_NAME); } -#include "resourcefactory.moc" diff --git a/tests/genericresourcetest.cpp b/tests/genericresourcetest.cpp index 141a5f8..0c64659 100644 --- a/tests/genericresourcetest.cpp +++ b/tests/genericresourcetest.cpp @@ -14,12 +14,6 @@ #include "genericresource.h" #include "definitions.h" -static void removeFromDisk(const QString &name) -{ - Akonadi2::Storage store(Akonadi2::storageLocation(), name, Akonadi2::Storage::ReadWrite); - store.removeFromDisk(); -} - /** * Test of the generic resource implementation. * -- cgit v1.2.3