Warnings-- (~T() override)

Consistently use
	~T() override;
in class declarations (so no virtual in front, and avoid
warnings due to the missing override in back).
This commit is contained in:
Adriaan de Groot 2020-09-22 22:34:38 +02:00
parent 7d5a209dd0
commit 2126be6d6d
26 changed files with 29 additions and 29 deletions

View File

@ -30,7 +30,7 @@ class CalamaresApplication : public QApplication
Q_OBJECT
public:
CalamaresApplication( int& argc, char* argv[] );
virtual ~CalamaresApplication();
~CalamaresApplication() override;
/**
* @brief init handles the first part of Calamares application startup.

View File

@ -28,7 +28,7 @@ class DLLEXPORT CppJob : public Job
Q_OBJECT
public:
explicit CppJob( QObject* parent = nullptr );
virtual ~CppJob();
~CppJob() override;
void setModuleInstanceKey( const Calamares::ModuleSystem::InstanceKey& instanceKey );
Calamares::ModuleSystem::InstanceKey moduleInstanceKey() const { return m_instanceKey; }

View File

@ -86,7 +86,7 @@ class DLLEXPORT Job : public QObject
Q_OBJECT
public:
explicit Job( QObject* parent = nullptr );
virtual ~Job();
~Job() override;
/** @brief The job's (relative) weight.
*

View File

@ -53,7 +53,7 @@ public:
{
}
virtual ~JobThread() override;
~JobThread() override;
void finalize()
{

View File

@ -25,7 +25,7 @@ class DLLEXPORT JobQueue : public QObject
Q_OBJECT
public:
explicit JobQueue( QObject* parent = nullptr );
virtual ~JobQueue();
~JobQueue() override;
static JobQueue* instance();

View File

@ -48,7 +48,7 @@ public:
static Helper* instance();
private:
virtual ~Helper();
~Helper() override;
explicit Helper();
boost::python::object m_mainModule;

View File

@ -36,7 +36,7 @@ public:
};
LabelModel( const QStringList& locales, QObject* parent = nullptr );
virtual ~LabelModel() override;
~LabelModel() override;
int rowCount( const QModelIndex& parent ) const override;

View File

@ -94,7 +94,7 @@ public:
};
RegionsModel( QObject* parent = nullptr );
virtual ~RegionsModel() override;
~RegionsModel() override;
int rowCount( const QModelIndex& parent ) const override;
QVariant data( const QModelIndex& index, int role ) const override;
@ -126,7 +126,7 @@ public:
};
ZonesModel( QObject* parent = nullptr );
virtual ~ZonesModel() override;
~ZonesModel() override;
int rowCount( const QModelIndex& parent ) const override;
QVariant data( const QModelIndex& index, int role ) const override;

View File

@ -99,7 +99,7 @@ public:
* to keep the reference.
*/
static Manager& instance();
virtual ~Manager();
virtual ~Manager() override;
/** @brief Checks if the given @p url returns data.
*

View File

@ -126,7 +126,7 @@ public:
* @param parent the QObject parent.
*/
explicit System( bool doChroot, QObject* parent = nullptr );
virtual ~System();
virtual ~System() override;
static System* instance();

View File

@ -88,7 +88,7 @@ public:
Q_PLUGIN_METADATA( IID CalamaresPluginFactory_iid ) \
public: \
explicit name(); \
~name(); \
~name() override; \
};
#define CALAMARES_PLUGIN_FACTORY_DEFINITION( name, pluginRegistrations ) \
K_PLUGIN_FACTORY_DEFINITION_WITH_BASEFACTORY( name, CalamaresPluginFactory, pluginRegistrations )

View File

@ -52,7 +52,7 @@ public:
: QObject( parent )
{
}
virtual ~Slideshow();
~Slideshow() override;
/// @brief Is the slideshow being shown **right now**?
bool isActive() const { return m_state == Start; }

View File

@ -38,7 +38,7 @@ class UIDLLEXPORT PrettyRadioButton : public QWidget
Q_OBJECT
public:
explicit PrettyRadioButton( QWidget* parent = nullptr );
virtual ~PrettyRadioButton() {}
~PrettyRadioButton() override {}
/// @brief Passes @p text on to the ClickableLabel
void setText( const QString& text );

View File

@ -35,7 +35,7 @@ class LayoutItem : public QListWidgetItem
public:
QString data;
virtual ~LayoutItem();
~LayoutItem() override;
};
LayoutItem::~LayoutItem() {}

View File

@ -34,7 +34,7 @@ class KeyboardPage : public QWidget
Q_OBJECT
public:
explicit KeyboardPage( QWidget* parent = nullptr );
virtual ~KeyboardPage();
~KeyboardPage() override;
void init();

View File

@ -71,8 +71,8 @@ private:
QString fromUnicodeString( QString raw );
protected:
void paintEvent( QPaintEvent* event );
void resizeEvent( QResizeEvent* event );
void paintEvent( QPaintEvent* event ) override;
void resizeEvent( QResizeEvent* event ) override;
};
#endif // KEYBOARDPREVIEW_H

View File

@ -52,7 +52,7 @@ class Config : public QObject
public:
Config( QObject* parent = nullptr );
~Config();
~Config() override;
void setConfigurationMap( const QVariantMap& );
void finalizeGlobalStorage() const;

View File

@ -32,7 +32,7 @@ class LocalePage : public QWidget
Q_OBJECT
public:
explicit LocalePage( class Config* config, QWidget* parent = nullptr );
virtual ~LocalePage();
~LocalePage() override;
void onActivate();

View File

@ -66,8 +66,8 @@ private:
const CalamaresUtils::Locale::ZonesModel* m_zonesData;
const TimeZoneData* m_currentLocation = nullptr; // Not owned by me
void paintEvent( QPaintEvent* event );
void mousePressEvent( QMouseEvent* event );
void paintEvent( QPaintEvent* event ) override;
void mousePressEvent( QMouseEvent* event ) override;
};
#endif // TIMEZONEWIDGET_H

View File

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

View File

@ -35,7 +35,7 @@ class NetInstallPage : public QWidget
Q_OBJECT
public:
NetInstallPage( Config* config, QWidget* parent = nullptr );
virtual ~NetInstallPage();
~NetInstallPage() override;
/** @brief Sets the page title
*

View File

@ -36,7 +36,7 @@ class TrackingStyleConfig : public QObject
public:
TrackingStyleConfig( QObject* parent );
virtual ~TrackingStyleConfig();
~TrackingStyleConfig() override;
void setConfigurationMap( const QVariantMap& );

View File

@ -104,7 +104,7 @@ public:
using PasswordStatus = QPair< PasswordValidity, QString >;
Config( QObject* parent = nullptr );
~Config();
~Config() override;
void setConfigurationMap( const QVariantMap& );

View File

@ -32,7 +32,7 @@ class UsersPage : public QWidget
Q_OBJECT
public:
explicit UsersPage( Config* config, QWidget* parent = nullptr );
virtual ~UsersPage();
~UsersPage() override;
void onActivate();

View File

@ -32,7 +32,7 @@ class CheckerContainer : public QWidget
Q_OBJECT
public:
explicit CheckerContainer( const Calamares::RequirementsModel& model, QWidget* parent = nullptr );
virtual ~CheckerContainer();
~CheckerContainer() override;
bool verdict() const;

View File

@ -87,7 +87,7 @@ public:
* or UB happens.
*/
ResultsListDialog( const Calamares::RequirementsModel& model, QWidget* parent );
virtual ~ResultsListDialog();
~ResultsListDialog() override;
private:
QLabel* m_title;