Skip to content
Snippets Groups Projects
Commit e68e8525 authored by Johannes Kauffmann's avatar Johannes Kauffmann Committed by Jean-Baptiste Kempf
Browse files

qt: avoid both virtual and override on dtors

When inheriting from classes with a virtual destructor, it is not needed
to declare the destructor both as virtual and override. In line with the
normal policy for virtual vs override, use virtual only when declaring
the base class destructor.
parent eede2d29
No related branches found
No related tags found
1 merge request!2440qt: avoid both virtual and override on dtors
Pipeline #257793 passed with stage
in 13 minutes and 55 seconds
......@@ -147,7 +147,7 @@ public:
Q_PROPERTY(int count READ getCount NOTIFY countChanged)
explicit NetworkMediaModel(QObject* parent = nullptr);
virtual ~NetworkMediaModel() override;
~NetworkMediaModel() override;
QVariant data(const QModelIndex& index, int role) const override;
QHash<int, QByteArray> roleNames() const override;
......
......@@ -67,7 +67,7 @@ public:
Q_ENUM(Role);
explicit ServicesDiscoveryModel(QObject* parent = nullptr);
virtual ~ServicesDiscoveryModel() override;
~ServicesDiscoveryModel() override;
QVariant data(const QModelIndex& index, int role) const override;
QHash<int, QByteArray> roleNames() const override;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment