From 84214431293d19c415fe3771ec01ea405464a422 Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 22 Oct 2019 14:12:10 +0200 Subject: [PATCH] fix -Winconsistent-missing-override --- src/Gui/MainWindow.h | 2 +- src/Gui/ReportView.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Gui/MainWindow.h b/src/Gui/MainWindow.h index 79d74d6a168a..1bafcaa2de3a 100644 --- a/src/Gui/MainWindow.h +++ b/src/Gui/MainWindow.h @@ -340,7 +340,7 @@ class StatusBarObserver: public WindowParameter, public Base::ILogger virtual ~StatusBarObserver(); /** Observes its parameter group. */ - void OnChange(Base::Subject &rCaller, const char * sReason); + void OnChange(Base::Subject &rCaller, const char * sReason) override; void SendLog(const std::string& msg, Base::LogStyle level) override; diff --git a/src/Gui/ReportView.h b/src/Gui/ReportView.h index 45928e7019fd..9572bc6e74a6 100644 --- a/src/Gui/ReportView.h +++ b/src/Gui/ReportView.h @@ -133,7 +133,7 @@ class GuiExport ReportOutput : public QTextEdit, public WindowParameter, public virtual ~ReportOutput(); /** Observes its parameter group. */ - void OnChange(Base::Subject &rCaller, const char * sReason); + void OnChange(Base::Subject &rCaller, const char * sReason) override; void SendLog(const std::string& msg, Base::LogStyle level) override; @@ -152,11 +152,11 @@ class GuiExport ReportOutput : public QTextEdit, public WindowParameter, public protected: /** For internal use only */ - void customEvent ( QEvent* ev ); + void customEvent ( QEvent* ev ) override; /** Handles the change of style sheets */ - void changeEvent(QEvent *); + void changeEvent(QEvent *) override; /** Pops up the context menu with some extensions */ - void contextMenuEvent ( QContextMenuEvent* e ); + void contextMenuEvent ( QContextMenuEvent* e ) override; public Q_SLOTS: /** Save the report messages into a file. */