Commit 662764af authored by Laurent Montel's avatar Laurent Montel 😁

Use const'ref here

parent d6981299
......@@ -304,7 +304,7 @@ int PredefinedProviderPage::nextId() const
* ServerTypePage
*/
bool compareServiceOffers(QPair<QString, QString> off1, QPair<QString, QString> off2)
bool compareServiceOffers(const QPair<QString, QString> &off1, const QPair<QString, QString> &off2)
{
return off1.first.toLower() < off2.first.toLower();
}
......
......@@ -29,7 +29,7 @@
#include "imapflags.h"
ReplaceMessageJob::ReplaceMessageJob(const KMime::Message::Ptr &msg, KIMAP::Session *session, const QString &mailbox, qint64 uidNext, KIMAP::ImapSet oldUids, QObject *parent)
ReplaceMessageJob::ReplaceMessageJob(const KMime::Message::Ptr &msg, KIMAP::Session *session, const QString &mailbox, qint64 uidNext, const KIMAP::ImapSet &oldUids, QObject *parent)
: KJob(parent),
mSession(session),
mMessage(msg),
......
......@@ -32,7 +32,7 @@ class ReplaceMessageJob : public KJob
{
Q_OBJECT
public:
ReplaceMessageJob(const KMime::Message::Ptr &msg, KIMAP::Session *session, const QString &mailbox, qint64 uidNext = -1, KIMAP::ImapSet oldUids = KIMAP::ImapSet(), QObject *parent = nullptr);
ReplaceMessageJob(const KMime::Message::Ptr &msg, KIMAP::Session *session, const QString &mailbox, qint64 uidNext = -1, const KIMAP::ImapSet &oldUids = KIMAP::ImapSet(), QObject *parent = nullptr);
qint64 newUid() const;
......
......@@ -212,7 +212,7 @@ static const QByteArray simpleMail5 =
"\r\n"
"Hello World!!\r\n";
void Pop3Test::cleanupMaildir(Akonadi::Item::List items)
void Pop3Test::cleanupMaildir(const Akonadi::Item::List &items)
{
// Delete all mails so the maildir is clean for the next test
if (!items.isEmpty()) {
......
......@@ -48,7 +48,7 @@ private Q_SLOTS:
private:
void lowerTimeOfSeenMail(const QString &uidOfMail, int secondsToLower);
void cleanupMaildir(Akonadi::Item::List items);
void cleanupMaildir(const Akonadi::Item::List &items);
void checkMailsInMaildir(const QList< QByteArray > &mails);
Akonadi::Item::List checkMailsOnAkonadiServer(const QList<QByteArray> &mails);
void syncAndWaitForFinish();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment