diff --git a/autotests/kmainwindow_unittest.cpp b/autotests/kmainwindow_unittest.cpp index 77fe383f..5736c776 100644 --- a/autotests/kmainwindow_unittest.cpp +++ b/autotests/kmainwindow_unittest.cpp @@ -102,7 +102,7 @@ public: m_queryClosedCalled = true; return true; } - ~MyMainWindow() + ~MyMainWindow() override { s_mainWindowDeleted = true; } diff --git a/src/kaboutapplicationdialog.h b/src/kaboutapplicationdialog.h index 451c0a5e..c5af92f3 100644 --- a/src/kaboutapplicationdialog.h +++ b/src/kaboutapplicationdialog.h @@ -100,7 +100,7 @@ public: */ explicit KAboutApplicationDialog(const KAboutData &aboutData, QWidget *parent = nullptr); - virtual ~KAboutApplicationDialog(); + ~KAboutApplicationDialog() override; private: std::unique_ptr const d; diff --git a/src/kactioncategory.h b/src/kactioncategory.h index 36df8431..b899302e 100644 --- a/src/kactioncategory.h +++ b/src/kactioncategory.h @@ -96,7 +96,7 @@ public: /** * Destructor */ - virtual ~KActionCategory(); + ~KActionCategory() override; /** * \name Adding Actions diff --git a/src/kedittoolbar_p.h b/src/kedittoolbar_p.h index ccaed232..d063d844 100644 --- a/src/kedittoolbar_p.h +++ b/src/kedittoolbar_p.h @@ -151,7 +151,7 @@ public: * @em NOT be saved in the destructor. You @em must call save() * to do that. */ - virtual ~KEditToolBarWidget(); + ~KEditToolBarWidget() override; /** * Old-style load. diff --git a/src/khelpmenu.h b/src/khelpmenu.h index c2309efa..e254b45b 100644 --- a/src/khelpmenu.h +++ b/src/khelpmenu.h @@ -143,7 +143,7 @@ public: * * Destroys dialogs and the menu pointer returned by menu */ - ~KHelpMenu(); + ~KHelpMenu() override; /** * Returns a popup menu you can use in the menu bar or where you diff --git a/src/kkeysequencewidget.h b/src/kkeysequencewidget.h index 90dcdfa7..ab370014 100644 --- a/src/kkeysequencewidget.h +++ b/src/kkeysequencewidget.h @@ -65,7 +65,7 @@ public: /** * Destructs the widget. */ - virtual ~KKeySequenceWidget(); + ~KKeySequenceWidget() override; /** * \name Configuration diff --git a/src/kmainwindow_p.h b/src/kmainwindow_p.h index c1b77721..3284a952 100644 --- a/src/kmainwindow_p.h +++ b/src/kmainwindow_p.h @@ -81,7 +81,7 @@ class KMWSessionManager : public QObject Q_OBJECT public: KMWSessionManager(); - ~KMWSessionManager(); + ~KMWSessionManager() override; private Q_SLOTS: void saveState(QSessionManager &); diff --git a/src/kmainwindowiface_p.h b/src/kmainwindowiface_p.h index 86b57b98..e65cc689 100644 --- a/src/kmainwindowiface_p.h +++ b/src/kmainwindowiface_p.h @@ -37,7 +37,7 @@ public: Destructor Cleans up the dcop action proxy object. **/ - ~KMainWindowInterface(); + ~KMainWindowInterface() override; public Q_SLOTS: /** diff --git a/src/ksendbugmail/smtp.h b/src/ksendbugmail/smtp.h index 8697bca5..49cd6776 100644 --- a/src/ksendbugmail/smtp.h +++ b/src/ksendbugmail/smtp.h @@ -47,7 +47,7 @@ class SMTP : public QObject Q_OBJECT public: explicit SMTP(char *serverhost = nullptr, unsigned short int port = 0, int timeout = DEFAULT_SMTP_TIMEOUT); - ~SMTP(); + ~SMTP() override; void setServerHost(const QString &serverhost); void setPort(unsigned short int port); diff --git a/src/kshortcutsdialog_p.h b/src/kshortcutsdialog_p.h index 59ae2439..78df18d3 100644 --- a/src/kshortcutsdialog_p.h +++ b/src/kshortcutsdialog_p.h @@ -269,7 +269,7 @@ public: * * Will undo pending changes. If you don't want that. Call commitChanges before */ - virtual ~KShortcutsEditorItem(); + ~KShortcutsEditorItem() override; //! Undo the changes since the last commit. void undo(); diff --git a/src/kshortcutseditor.h b/src/kshortcutseditor.h index 62e21f2b..f03a0b82 100644 --- a/src/kshortcutseditor.h +++ b/src/kshortcutseditor.h @@ -109,7 +109,7 @@ public: explicit KShortcutsEditor(QWidget *parent, ActionTypes actionTypes = AllActions, LetterShortcuts allowLetterShortcuts = LetterShortcutsAllowed); /// Destructor - virtual ~KShortcutsEditor(); + ~KShortcutsEditor() override; /** * Are the unsaved changes? diff --git a/src/kshortcutwidget.h b/src/kshortcutwidget.h index 2db38ed7..c7868fa8 100644 --- a/src/kshortcutwidget.h +++ b/src/kshortcutwidget.h @@ -28,7 +28,7 @@ class KXMLGUI_EXPORT KShortcutWidget : public QWidget Q_PROPERTY(bool modifierlessAllowed READ isModifierlessAllowed WRITE setModifierlessAllowed) public: KShortcutWidget(QWidget *parent = nullptr); - ~KShortcutWidget(); + ~KShortcutWidget() override; void setModifierlessAllowed(bool allow); bool isModifierlessAllowed(); diff --git a/src/kswitchlanguagedialog_p.h b/src/kswitchlanguagedialog_p.h index c4a0c95d..d4551ccd 100644 --- a/src/kswitchlanguagedialog_p.h +++ b/src/kswitchlanguagedialog_p.h @@ -49,7 +49,7 @@ public: */ explicit KSwitchLanguageDialog(QWidget *parent = nullptr); - virtual ~KSwitchLanguageDialog(); + ~KSwitchLanguageDialog() override; protected Q_SLOTS: /** diff --git a/src/ktoolbar.h b/src/ktoolbar.h index 524adc0f..f7a9502d 100644 --- a/src/ktoolbar.h +++ b/src/ktoolbar.h @@ -119,7 +119,7 @@ public: /** * Destroys the toolbar. */ - virtual ~KToolBar(); + ~KToolBar() override; /** * Returns the main window that this toolbar is docked with. diff --git a/src/ktoolbarhandler_p.h b/src/ktoolbarhandler_p.h index 52972c92..3b59134c 100644 --- a/src/ktoolbarhandler_p.h +++ b/src/ktoolbarhandler_p.h @@ -36,7 +36,7 @@ public: /** * Destroys the tool bar handler. */ - virtual ~ToolBarHandler(); + ~ToolBarHandler() override; /** * Returns the action which is responsible for the tool bar menu. diff --git a/src/ktooltiphelper.h b/src/ktooltiphelper.h index 8eff4835..aff696a3 100644 --- a/src/ktooltiphelper.h +++ b/src/ktooltiphelper.h @@ -97,7 +97,7 @@ public: private: explicit KToolTipHelper(QObject *parent); - virtual ~KToolTipHelper(); + ~KToolTipHelper() override; private: std::unique_ptr const d; diff --git a/src/ktooltiphelper_p.h b/src/ktooltiphelper_p.h index e6c8a628..4a4f6ac7 100644 --- a/src/ktooltiphelper_p.h +++ b/src/ktooltiphelper_p.h @@ -37,7 +37,7 @@ public: explicit KToolTipHelperPrivate(KToolTipHelper *qq); - virtual ~KToolTipHelperPrivate(); + ~KToolTipHelperPrivate() override; /** @see KToolTipHelper::eventFilter() */ virtual bool eventFilter(QObject* watched, QEvent* event) override; diff --git a/src/kxmlguifactory.h b/src/kxmlguifactory.h index e7ccb3d2..51c7218d 100644 --- a/src/kxmlguifactory.h +++ b/src/kxmlguifactory.h @@ -69,7 +69,7 @@ public: /** * Destructor */ - ~KXMLGUIFactory(); + ~KXMLGUIFactory() override; // XXX move to somewhere else? (Simon) /// @internal diff --git a/tests/kmainwindowrestoretest.h b/tests/kmainwindowrestoretest.h index affb9b94..64b6e192 100644 --- a/tests/kmainwindowrestoretest.h +++ b/tests/kmainwindowrestoretest.h @@ -11,7 +11,7 @@ public: : KMainWindow() { } - virtual ~MainWin1() + ~MainWin1() override { } }; @@ -24,7 +24,7 @@ public: : KMainWindow() { } - virtual ~MainWin2() + ~MainWin2() override { } }; @@ -37,7 +37,7 @@ public: : KMainWindow() { } - virtual ~MainWin3() + ~MainWin3() override { } }; @@ -50,7 +50,7 @@ public: : KMainWindow() { } - virtual ~MainWin4() + ~MainWin4() override { } }; @@ -63,7 +63,7 @@ public: : KMainWindow() { } - virtual ~MainWin5() + ~MainWin5() override { } }; @@ -76,7 +76,7 @@ public: : KMainWindow() { } - virtual ~MainWin6() + ~MainWin6() override { } }; diff --git a/tests/krichtexteditor/krichtexteditor.h b/tests/krichtexteditor/krichtexteditor.h index 9d029121..63f35325 100644 --- a/tests/krichtexteditor/krichtexteditor.h +++ b/tests/krichtexteditor/krichtexteditor.h @@ -25,7 +25,7 @@ class KRichTextEditor : public KXmlGuiWindow Q_OBJECT public: KRichTextEditor(); - ~KRichTextEditor(); + ~KRichTextEditor() override; void setupActions(); diff --git a/tests/krulertest.h b/tests/krulertest.h index 3e6b1d87..b828ec6b 100644 --- a/tests/krulertest.h +++ b/tests/krulertest.h @@ -42,7 +42,7 @@ class KRulerTest : public QWidget Q_OBJECT public: KRulerTest(); - ~KRulerTest(); + ~KRulerTest() override; private Q_SLOTS: void slotNewWidth(int); diff --git a/tests/kwindowtest.h b/tests/kwindowtest.h index 61c95721..09566437 100644 --- a/tests/kwindowtest.h +++ b/tests/kwindowtest.h @@ -18,7 +18,7 @@ class TestWindow : public KXmlGuiWindow public: TestWindow(QWidget *parent = nullptr); - ~TestWindow(); + ~TestWindow() override; public Q_SLOTS: void beFixed();