Commit bf74fe0c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add missing override on destructor

parent b21c9b56
Pipeline #43299 skipped
......@@ -35,7 +35,7 @@ public:
{
mGroup->addWidget(this);
}
~StackedWidgetT() { mGroup->removeWidget(this); }
~StackedWidgetT() override { mGroup->removeWidget(this); }
QSize sizeHint() const override { return minimumSizeHint(); }
QSize minimumSizeHint() const override { return mGroup->minimumSizeHint(); }
......
......@@ -68,7 +68,7 @@ class MinuteTimer : public SynchTimer
{
Q_OBJECT
public:
virtual ~MinuteTimer() { mInstance = nullptr; }
~MinuteTimer() override { mInstance = nullptr; }
/** Connect to the timer signal.
* @param receiver Receiving object.
......
......@@ -23,7 +23,7 @@ class AudioThread : public QThread
Q_OBJECT
public:
AudioThread(MessageDisplayHelper* parent, const QString& audioFile, float volume, float fadeVolume, int fadeSeconds, int repeatPause);
~AudioThread();
~AudioThread() override;
void stop(bool wait = false);
QString error() const;
......
......@@ -26,7 +26,7 @@ class KAlarmPrefDlg : public KPageDialog
Q_OBJECT
public:
static void display();
~KAlarmPrefDlg();
~KAlarmPrefDlg() override;
QSize minimumSizeHint() const override;
protected:
......
......@@ -116,7 +116,7 @@ public:
template <class DataModel>
static AlarmListModel* create(QObject* parent = nullptr);
~AlarmListModel();
~AlarmListModel() override;
/** Return the model containing all active and archived alarms. */
template <class DataModel>
......@@ -170,7 +170,7 @@ public:
template <class DataModel>
static TemplateListModel* create(QObject* parent = nullptr);
~TemplateListModel();
~TemplateListModel() override;
/** Return the model containing all alarm templates. */
template <class DataModel>
......
......@@ -48,7 +48,7 @@ public:
*/
explicit FileResource(FileResourceSettings* settings);
~FileResource();
~FileResource() override;
/** Return whether the resource has a valid configuration. */
bool isValid() const override;
......
......@@ -139,7 +139,7 @@ public:
template <class DataModel>
static ResourceCheckListModel* create(CalEvent::Type, QObject* parent = nullptr);
~ResourceCheckListModel();
~ResourceCheckListModel() override;
Resource resource(int row) const;
Resource resource(const QModelIndex&) const;
void disable() { mDisabled = true; }
......@@ -188,7 +188,7 @@ public:
template <class DataModel>
static ResourceFilterCheckListModel* create(QObject* parent = nullptr);
~ResourceFilterCheckListModel();
~ResourceFilterCheckListModel() override;
void setEventTypeFilter(CalEvent::Type);
Resource resource(int row) const;
Resource resource(const QModelIndex&) const;
......
......@@ -44,7 +44,7 @@ protected:
explicit SingleFileResource(FileResourceSettings* settings);
public:
~SingleFileResource();
~SingleFileResource() override;
/** Return the type of storage used by the resource. */
StorageType storageType() const override { return File; }
......
......@@ -23,7 +23,7 @@ class SingleFileResourceConfigDialog : public QDialog
Q_OBJECT
public:
SingleFileResourceConfigDialog(bool create, QWidget* parent);
~SingleFileResourceConfigDialog();
~SingleFileResourceConfigDialog() override;
/** Return the file URL. */
QUrl url() const;
......
......@@ -77,7 +77,7 @@ class UndoMultiBase : public UndoItem
: UndoItem(t, name), mUndos(new Undo::List) {}
UndoMultiBase(Undo::Type t, Undo::List* undos, const QString& name)
: UndoItem(t, name), mUndos(undos) {}
~UndoMultiBase() { delete mUndos; }
~UndoMultiBase() override { delete mUndos; }
const Undo::List* undos() const { return mUndos; }
protected:
void dumpDebugTitle(const char* typeName) const override;
......@@ -125,7 +125,7 @@ class UndoEdit : public UndoItem
public:
UndoEdit(Undo::Type, const KAEvent& oldEvent, const QString& newEventID,
const Resource&, const QStringList& dontShowErrors, const QString& description);
~UndoEdit();
~UndoEdit() override;
Operation operation() const override { return EDIT; }
QString defaultActionText() const override;
QString description() const override { return mDescription; }
......@@ -150,7 +150,7 @@ class UndoDelete : public UndoItem
public:
UndoDelete(Undo::Type, const Undo::Event&, const QString& name = QString());
UndoDelete(Undo::Type, const KAEvent&, const Resource&, const QStringList& dontShowErrors, const QString& name = QString());
~UndoDelete();
~UndoDelete() override;
Operation operation() const override { return DELETE; }
QString defaultActionText() const override;
QString description() const override { return UndoItem::description(*mEvent); }
......
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