Commit 8c265ef1 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add missing override in destructor + const'ify pointer

parent 538b7915
Pipeline #48248 failed with stage
in 14 minutes and 20 seconds
......@@ -29,7 +29,7 @@ class SessionThread : public QObject
public:
explicit SessionThread(Session *session, QObject *parent = nullptr);
~SessionThread();
~SessionThread() override;
void connectToHost(const QUrl &url);
void disconnectFromHost(bool sendLogout);
......
......@@ -50,7 +50,7 @@ public:
bool handleResponse(const Response &response, const QByteArray &data);
void killed();
SieveJob *q = nullptr;
SieveJob *const q;
QUrl mUrl;
QString mScript;
QString mActiveScriptName;
......
......@@ -14,7 +14,7 @@ class SelectConvertParameterWidget : public QWidget
Q_OBJECT
public:
explicit SelectConvertParameterWidget(QWidget *parent = nullptr);
~SelectConvertParameterWidget();
~SelectConvertParameterWidget() override;
Q_REQUIRED_RESULT QString code() const;
void setCode(const QStringList &code, QString &error);
......
......@@ -15,7 +15,7 @@ class SelectMatchTypeComboBox : public QComboBox
Q_OBJECT
public:
explicit SelectMatchTypeComboBox(KSieveUi::SieveEditorGraphicalModeWidget *sieveGraphicalModeWidget, QWidget *parent = nullptr);
~SelectMatchTypeComboBox();
~SelectMatchTypeComboBox() override;
Q_REQUIRED_RESULT QString code(bool &negative) const;
void setCode(const QString &code, const QString &name, QString &error);
......
......@@ -14,7 +14,7 @@ class SelectMimeTypeComboBox : public QComboBox
Q_OBJECT
public:
explicit SelectMimeTypeComboBox(QWidget *parent = nullptr);
~SelectMimeTypeComboBox();
~SelectMimeTypeComboBox() override;
Q_REQUIRED_RESULT QString code() const;
void setCode(const QString &code, const QString &name, QString &error);
......
......@@ -13,7 +13,7 @@ class SelectAddHeaderPositionCombobox : public QComboBox
Q_OBJECT
public:
explicit SelectAddHeaderPositionCombobox(QWidget *parent = nullptr);
~SelectAddHeaderPositionCombobox();
~SelectAddHeaderPositionCombobox() override;
Q_REQUIRED_RESULT QString code() const;
void setCode(const QString &code, const QString &name, QString &error);
......
......@@ -16,7 +16,7 @@ class SelectFlagsListWidget : public QListWidget
Q_OBJECT
public:
explicit SelectFlagsListWidget(QWidget *parent = nullptr);
~SelectFlagsListWidget();
~SelectFlagsListWidget() override;
void setFlags(const QStringList &list);
Q_REQUIRED_RESULT QStringList flags() const;
......
......@@ -14,7 +14,7 @@ class SelectImportanceCombobox : public QComboBox
Q_OBJECT
public:
explicit SelectImportanceCombobox(QWidget *parent = nullptr);
~SelectImportanceCombobox();
~SelectImportanceCombobox() override;
Q_REQUIRED_RESULT QString code() const;
void setCode(const QString &code, const QString &name, QString &error);
......
......@@ -13,7 +13,7 @@ class SelectVacationComboBox : public QComboBox
Q_OBJECT
public:
explicit SelectVacationComboBox(QWidget *parent = nullptr);
~SelectVacationComboBox();
~SelectVacationComboBox() override;
Q_REQUIRED_RESULT QString code() const;
void setCode(const QString &code, const QString &name, QString &error);
......
......@@ -14,7 +14,7 @@ class SelectVariableModifierComboBox : public QComboBox
Q_OBJECT
public:
explicit SelectVariableModifierComboBox(QWidget *parent = nullptr);
~SelectVariableModifierComboBox();
~SelectVariableModifierComboBox() override;
Q_REQUIRED_RESULT QString code() const;
void setCode(const QString &code, const QString &name, QString &error);
......
......@@ -24,7 +24,7 @@ class SieveActionWidget : public QWidget
Q_OBJECT
public:
explicit SieveActionWidget(SieveEditorGraphicalModeWidget *graphicalModeWidget, QWidget *parent);
~SieveActionWidget();
~SieveActionWidget() override;
void updateAddRemoveButton(bool addButtonEnabled, bool removeButtonEnabled);
void generatedScript(QString &script, QStringList &required, bool onlyActions, bool inForEveryPartLoop);
......
......@@ -15,7 +15,7 @@ class SelectAddressPartComboBox : public QComboBox
Q_OBJECT
public:
explicit SelectAddressPartComboBox(KSieveUi::SieveEditorGraphicalModeWidget *sieveGraphicalModeWidget, QWidget *parent = nullptr);
~SelectAddressPartComboBox();
~SelectAddressPartComboBox() override;
Q_REQUIRED_RESULT QString code() const;
void setCode(const QString &code, const QString &name, QString &error);
......
......@@ -17,7 +17,7 @@ class SelectBodyTypeWidget : public QWidget
Q_OBJECT
public:
explicit SelectBodyTypeWidget(QWidget *parent = nullptr);
~SelectBodyTypeWidget();
~SelectBodyTypeWidget() override;
Q_REQUIRED_RESULT QString code() const;
void setCode(const QString &type, const QString &content, const QString &name, QString &error);
......
......@@ -15,7 +15,7 @@ class SelectComparatorComboBox : public QComboBox
Q_OBJECT
public:
explicit SelectComparatorComboBox(KSieveUi::SieveEditorGraphicalModeWidget *sieveGraphicalModeWidget, QWidget *parent = nullptr);
~SelectComparatorComboBox();
~SelectComparatorComboBox() override;
Q_REQUIRED_RESULT QString code() const;
void setCode(const QString &code, const QString &name, QString &error);
......
......@@ -38,7 +38,7 @@ public:
Weekday
};
explicit SelectDateWidget(QWidget *parent = nullptr);
~SelectDateWidget();
~SelectDateWidget() override;
Q_REQUIRED_RESULT QString code() const;
void setCode(const QString &type, const QString &value);
......
......@@ -19,7 +19,7 @@ class SelectHeadersWidget : public QListWidget
Q_OBJECT
public:
explicit SelectHeadersWidget(QWidget *parent = nullptr);
~SelectHeadersWidget();
~SelectHeadersWidget() override;
Q_REQUIRED_RESULT QString headers() const;
void setListHeaders(const QMap<QString, QString> &lst, const QStringList &selectedHeaders);
......
......@@ -13,7 +13,7 @@ class SelectMimeComboBox : public QComboBox
Q_OBJECT
public:
explicit SelectMimeComboBox(QWidget *parent = nullptr);
~SelectMimeComboBox();
~SelectMimeComboBox() override;
Q_REQUIRED_RESULT QString code() const;
void setCode(const QString &code, const QString &name, QString &error);
......
......@@ -15,7 +15,7 @@ class SelectRelationalMatchType : public QWidget
Q_OBJECT
public:
explicit SelectRelationalMatchType(QWidget *parent = nullptr);
~SelectRelationalMatchType();
~SelectRelationalMatchType() override;
Q_REQUIRED_RESULT QString code() const;
void setCode(const QString &type, const QString &comparatorStr, const QString &name, QString &error);
......
......@@ -14,7 +14,7 @@ class SelectSizeTypeComboBox : public QComboBox
Q_OBJECT
public:
explicit SelectSizeTypeComboBox(QWidget *parent = nullptr);
~SelectSizeTypeComboBox();
~SelectSizeTypeComboBox() override;
Q_REQUIRED_RESULT QString code() const;
void setCode(const QString &code, const QString &name, QString &error);
......
......@@ -17,7 +17,7 @@ class SelectSizeWidget : public QWidget
Q_OBJECT
public:
explicit SelectSizeWidget(QWidget *parent = nullptr);
~SelectSizeWidget();
~SelectSizeWidget() override;
Q_REQUIRED_RESULT QString code() const;
void setCode(qlonglong value, const QString &identifier, const QString &name, QString &error);
......
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