summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-15 06:56:13 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-15 06:56:13 (GMT)
commiteea75465e65b922c4c31b0613b596661e74b89e8 (patch)
tree4cddf77f31b843e2664a946280aec3a6489ce91d
parent24ad911dec51e8547927d82235ea8b10bfb87fe5 (diff)
Remove some clazy warningv16.11.80
-rw-r--r--autotests/messagequeuejobtest.cpp2
-rw-r--r--src/kcm/configmodule.h1
-rw-r--r--src/transportjob.h1
3 files changed, 3 insertions, 1 deletions
diff --git a/autotests/messagequeuejobtest.cpp b/autotests/messagequeuejobtest.cpp
index 8d89089..e7d2cfb 100644
--- a/autotests/messagequeuejobtest.cpp
+++ b/autotests/messagequeuejobtest.cpp
@@ -97,7 +97,7 @@ void MessageQueueJobTest::testValidMessages()
fjob->fetchScope().fetchAllAttributes();
AKVERIFYEXEC(fjob);
QCOMPARE(fjob->items().count(), 1);
- Item item = fjob->items().first();
+ Item item = fjob->items().constFirst();
QVERIFY(!item.remoteId().isEmpty()); // stored by the resource
QVERIFY(item.hasPayload<Message::Ptr>());
AddressAttribute *addrA = item.attribute<AddressAttribute>();
diff --git a/src/kcm/configmodule.h b/src/kcm/configmodule.h
index a6cbe35..51e5e85 100644
--- a/src/kcm/configmodule.h
+++ b/src/kcm/configmodule.h
@@ -30,6 +30,7 @@ namespace MailTransport
*/
class ConfigModule : public KCModule
{
+ Q_OBJECT
public:
explicit ConfigModule(QWidget *parent = Q_NULLPTR,
const QVariantList &args = QVariantList());
diff --git a/src/transportjob.h b/src/transportjob.h
index ad32399..fb32f54 100644
--- a/src/transportjob.h
+++ b/src/transportjob.h
@@ -41,6 +41,7 @@ class Transport;
*/
class MAILTRANSPORT_DEPRECATED_EXPORT TransportJob : public KCompositeJob
{
+ Q_OBJECT
friend class TransportManager;
public: