From aaffe01ec61a02ddd8f74255fdbbb1c84e038a24 Mon Sep 17 00:00:00 2001 From: Allen Winter Date: Sat, 28 May 2016 15:50:35 -0400 Subject: [PATCH] autotests/searchruletest.cpp - -Wunused --- src/search/autotests/searchruletest.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/search/autotests/searchruletest.cpp b/src/search/autotests/searchruletest.cpp index 96105d4..ba0c95b 100644 --- a/src/search/autotests/searchruletest.cpp +++ b/src/search/autotests/searchruletest.cpp @@ -16,8 +16,10 @@ */ #include "searchruletest.h" -#include #include "../search/searchrule/searchrule.h" + +#include + class TestSearchRule : public MailCommon::SearchRule { public: @@ -25,17 +27,19 @@ public: const QString &contents = QString()) : MailCommon::SearchRule(field, function, contents) { - } bool matches(const Akonadi::Item &item) const { + Q_UNUSED(item); return false; } + bool isEmpty() const { return false; } + MailCommon::SearchRule::RequiredPart requiredPart() const { return MailCommon::SearchRule::CompleteMessage; @@ -45,7 +49,6 @@ public: SearchRuleTest::SearchRuleTest(QObject *parent) : QObject(parent) { - } void SearchRuleTest::shouldHaveDefaultValue()