Commit 2407d85b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

const'ify variable + Q_REQUIRED_RESULT

parent bcf518d9
Pipeline #75475 passed with stage
in 54 minutes and 5 seconds
......@@ -13,10 +13,10 @@ public:
explicit Evolutionv1ImportData(QObject *parent, const QList<QVariant> & = QList<QVariant>());
~Evolutionv1ImportData() override;
TypeSupportedOptions supportedOption() override;
bool foundMailer() const override;
Q_REQUIRED_RESULT TypeSupportedOptions supportedOption() override;
Q_REQUIRED_RESULT bool foundMailer() const override;
bool importMails() override;
QString name() const override;
Q_REQUIRED_RESULT bool importMails() override;
Q_REQUIRED_RESULT QString name() const override;
};
......@@ -12,10 +12,10 @@ public:
explicit Evolutionv2ImportData(QObject *parent, const QList<QVariant> & = QList<QVariant>());
~Evolutionv2ImportData() override;
TypeSupportedOptions supportedOption() override;
bool foundMailer() const override;
Q_REQUIRED_RESULT TypeSupportedOptions supportedOption() override;
Q_REQUIRED_RESULT bool foundMailer() const override;
bool importMails() override;
QString name() const override;
Q_REQUIRED_RESULT bool importMails() override;
Q_REQUIRED_RESULT QString name() const override;
};
......@@ -13,13 +13,13 @@ public:
explicit GearyImportData(QObject *parent, const QList<QVariant> & = QList<QVariant>());
~GearyImportData() override;
TypeSupportedOptions supportedOption() override;
bool foundMailer() const override;
Q_REQUIRED_RESULT TypeSupportedOptions supportedOption() override;
Q_REQUIRED_RESULT bool foundMailer() const override;
bool importMails() override;
bool importSettings() override;
bool importAddressBook() override;
Q_REQUIRED_RESULT bool importMails() override;
Q_REQUIRED_RESULT bool importSettings() override;
Q_REQUIRED_RESULT bool importAddressBook() override;
QString name() const override;
Q_REQUIRED_RESULT QString name() const override;
};
......@@ -15,8 +15,8 @@
#include <QSettings>
GearySettings::GearySettings(const QString &filename)
: settings(new QSettings(filename, QSettings::IniFormat, this))
{
settings = new QSettings(filename, QSettings::IniFormat, this);
}
GearySettings::~GearySettings()
......
......@@ -22,6 +22,6 @@ private:
void readIdentity();
void readGlobalSettings();
void readTransport();
QSettings *settings = nullptr;
QSettings *const settings;
};
......@@ -13,13 +13,13 @@ public:
explicit NylasMailImportData(QObject *parent, const QList<QVariant> & = QList<QVariant>());
~NylasMailImportData() override;
TypeSupportedOptions supportedOption() override;
bool foundMailer() const override;
Q_REQUIRED_RESULT TypeSupportedOptions supportedOption() override;
Q_REQUIRED_RESULT bool foundMailer() const override;
bool importMails() override;
bool importSettings() override;
bool importAddressBook() override;
Q_REQUIRED_RESULT bool importMails() override;
Q_REQUIRED_RESULT bool importSettings() override;
Q_REQUIRED_RESULT bool importAddressBook() override;
QString name() const override;
Q_REQUIRED_RESULT QString name() const override;
};
......@@ -13,10 +13,10 @@ public:
explicit OeImportData(QObject *parent, const QList<QVariant> & = QList<QVariant>());
~OeImportData() override;
TypeSupportedOptions supportedOption() override;
bool foundMailer() const override;
Q_REQUIRED_RESULT TypeSupportedOptions supportedOption() override;
Q_REQUIRED_RESULT bool foundMailer() const override;
bool importMails() override;
QString name() const override;
Q_REQUIRED_RESULT bool importMails() override;
Q_REQUIRED_RESULT QString name() const override;
};
......@@ -18,6 +18,6 @@ public:
private:
void appendContact(KContacts::Addressee *contact);
QString mFileName;
const QString mFileName;
};
......@@ -15,12 +15,12 @@ public:
~OperaImportData() override;
TypeSupportedOptions supportedOption() override;
bool foundMailer() const override;
Q_REQUIRED_RESULT bool foundMailer() const override;
bool importMails() override;
bool importAddressBook() override;
bool importSettings() override;
Q_REQUIRED_RESULT bool importMails() override;
Q_REQUIRED_RESULT bool importAddressBook() override;
Q_REQUIRED_RESULT bool importSettings() override;
QString name() const override;
Q_REQUIRED_RESULT QString name() const override;
};
......@@ -23,6 +23,6 @@ private:
void readTransport(const KConfigGroup &grp);
void readGlobalAccount(const KConfigGroup &grp);
void readIdentity(const KConfigGroup &grp);
QString mFileName;
const QString mFileName;
};
......@@ -14,12 +14,12 @@ public:
explicit PMailImportData(QObject *parent, const QList<QVariant> & = QList<QVariant>());
~PMailImportData() override;
TypeSupportedOptions supportedOption() override;
bool foundMailer() const override;
Q_REQUIRED_RESULT TypeSupportedOptions supportedOption() override;
Q_REQUIRED_RESULT bool foundMailer() const override;
bool importMails() override;
bool importSettings() override;
Q_REQUIRED_RESULT bool importMails() override;
Q_REQUIRED_RESULT bool importSettings() override;
QString name() const override;
Q_REQUIRED_RESULT QString name() const override;
};
......@@ -20,6 +20,6 @@ public:
private:
void readIdentity(const KConfigGroup &group);
QString mFileName;
const QString mFileName;
};
......@@ -13,10 +13,10 @@ public:
explicit TheBatImportData(QObject *parent, const QList<QVariant> & = QList<QVariant>());
~TheBatImportData() override;
TypeSupportedOptions supportedOption() override;
bool foundMailer() const override;
Q_REQUIRED_RESULT TypeSupportedOptions supportedOption() override;
Q_REQUIRED_RESULT bool foundMailer() const override;
bool importMails() override;
QString name() const override;
Q_REQUIRED_RESULT bool importMails() override;
Q_REQUIRED_RESULT QString name() const override;
};
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