[partition] Mark destructors override

This reduces compiler warnings related to virtual-overriding
functions: all the destructors are virtual.
This commit is contained in:
Adriaan de Groot 2020-10-23 22:23:10 +02:00
parent 697ee6f65f
commit 51b47862cd
8 changed files with 8 additions and 8 deletions

View File

@ -28,7 +28,7 @@ class Config : public QObject
public:
Config( QObject* parent );
virtual ~Config() = default;
~Config() override = default;
enum InstallChoice
{

View File

@ -85,7 +85,7 @@ public:
};
PartitionCoreModule( QObject* parent = nullptr );
~PartitionCoreModule();
~PartitionCoreModule() override;
/**
* @brief init performs a devices scan and initializes all KPMcore data

View File

@ -54,7 +54,7 @@ class ChoicePage : public QWidget, private Ui::ChoicePage
Q_OBJECT
public:
explicit ChoicePage( Config* config, QWidget* parent = nullptr );
virtual ~ChoicePage();
~ChoicePage() override;
/**
* @brief init runs when the PartitionViewStep and the PartitionCoreModule are

View File

@ -45,7 +45,7 @@ public:
Partition* partition,
const QStringList& usedMountPoints,
QWidget* parentWidget = nullptr );
~CreatePartitionDialog();
~CreatePartitionDialog() override;
/**
* Must be called when user wants to create a partition in

View File

@ -36,7 +36,7 @@ public:
Partition* partition,
const QStringList& usedMountPoints,
QWidget* parentWidget = nullptr );
~EditExistingPartitionDialog();
~EditExistingPartitionDialog() override;
void applyChanges( PartitionCoreModule* module );

View File

@ -34,7 +34,7 @@ class PartitionPage : public QWidget
Q_OBJECT
public:
explicit PartitionPage( PartitionCoreModule* core, QWidget* parent = nullptr );
~PartitionPage();
~PartitionPage() override;
void onRevertClicked();

View File

@ -27,7 +27,7 @@ class ReplaceWidget : public QWidget
Q_OBJECT
public:
explicit ReplaceWidget( PartitionCoreModule* core, QComboBox* devicesComboBox, QWidget* parent = nullptr );
virtual ~ReplaceWidget();
virtual ~ReplaceWidget() override;
bool isNextEnabled() const;

View File

@ -30,7 +30,7 @@ class VolumeGroupBaseDialog : public QDialog
public:
explicit VolumeGroupBaseDialog( QString& vgName, QVector< const Partition* > pvList, QWidget* parent = nullptr );
~VolumeGroupBaseDialog();
~VolumeGroupBaseDialog() override;
protected:
virtual void updateOkButton();