summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2016-05-13 07:07:25 +0200
committerMontel Laurent <[email protected]>2016-05-13 07:07:25 +0200
commit6829e6f45941e453e43c75d928b3d15b0594c658 (patch)
tree096c6b6953db47b119884f1b23571acf72249b78
parentcda457384154e5656facdcb071ad5fc9bd899078 (diff)
Add Q_DECL_OVERRIDE, const'ify
-rw-r--r--resources/imap/messagehelper.cpp2
-rw-r--r--resources/imap/messagehelper.h2
-rw-r--r--resources/kolab/kolabmessagehelper.cpp2
-rw-r--r--resources/kolab/kolabmessagehelper.h4
-rw-r--r--resources/kolab/tagchangehelper.h2
5 files changed, 6 insertions, 6 deletions
diff --git a/resources/imap/messagehelper.cpp b/resources/imap/messagehelper.cpp
index 4686a49..0feeab2 100644
--- a/resources/imap/messagehelper.cpp
+++ b/resources/imap/messagehelper.cpp
@@ -29,7 +29,7 @@ MessageHelper::~MessageHelper()
}
-Akonadi::Item MessageHelper::createItemFromMessage(KMime::Message::Ptr message,
+Akonadi::Item MessageHelper::createItemFromMessage(const KMime::Message::Ptr &message,
const qint64 uid,
const qint64 size,
const QList<KIMAP::MessageAttribute> &attrs,
diff --git a/resources/imap/messagehelper.h b/resources/imap/messagehelper.h
index 6920267..76835ea 100644
--- a/resources/imap/messagehelper.h
+++ b/resources/imap/messagehelper.h
@@ -30,7 +30,7 @@ public:
typedef QSharedPointer<MessageHelper> Ptr;
virtual ~MessageHelper();
- virtual Akonadi::Item createItemFromMessage(KMime::Message::Ptr message,
+ virtual Akonadi::Item createItemFromMessage(const KMime::Message::Ptr &message,
const qint64 uid,
const qint64 size,
const QList<KIMAP::MessageAttribute> &attrs,
diff --git a/resources/kolab/kolabmessagehelper.cpp b/resources/kolab/kolabmessagehelper.cpp
index 9fc8edd..8e17a32 100644
--- a/resources/kolab/kolabmessagehelper.cpp
+++ b/resources/kolab/kolabmessagehelper.cpp
@@ -36,7 +36,7 @@ KolabMessageHelper::~KolabMessageHelper()
}
-Akonadi::Item KolabMessageHelper::createItemFromMessage(KMime::Message::Ptr message,
+Akonadi::Item KolabMessageHelper::createItemFromMessage(const KMime::Message::Ptr &message,
const qint64 uid,
const qint64 size,
const QList<KIMAP::MessageAttribute> &attrs,
diff --git a/resources/kolab/kolabmessagehelper.h b/resources/kolab/kolabmessagehelper.h
index 048b350..6fe3ca0 100644
--- a/resources/kolab/kolabmessagehelper.h
+++ b/resources/kolab/kolabmessagehelper.h
@@ -28,13 +28,13 @@ class KolabMessageHelper : public MessageHelper
public:
explicit KolabMessageHelper(const Akonadi::Collection &collection);
virtual ~KolabMessageHelper();
- virtual Akonadi::Item createItemFromMessage(KMime::Message::Ptr message,
+ Akonadi::Item createItemFromMessage(const KMime::Message::Ptr &message,
const qint64 uid,
const qint64 size,
const QList<KIMAP::MessageAttribute> &attrs,
const QList<QByteArray> &flags,
const KIMAP::FetchJob::FetchScope &scope,
- bool &ok) const;
+ bool &ok) const Q_DECL_OVERRIDE;
private:
Akonadi::Collection mCollection;
diff --git a/resources/kolab/tagchangehelper.h b/resources/kolab/tagchangehelper.h
index 7393f04..4020ef7 100644
--- a/resources/kolab/tagchangehelper.h
+++ b/resources/kolab/tagchangehelper.h
@@ -48,7 +48,7 @@ class TagChangeHelper : public QObject
{
Q_OBJECT
public:
- explicit TagChangeHelper(KolabRelationResourceTask *parent = 0);
+ explicit TagChangeHelper(KolabRelationResourceTask *parent = Q_NULLPTR);
void start(const Akonadi::Tag &tag, const KMime::Message::Ptr &message, KIMAP::Session *session);