diff --git a/qa/common/mocks.cpp b/qa/common/mocks.cpp index 4fe04937bb..f5a208cf90 100644 --- a/qa/common/mocks.cpp +++ b/qa/common/mocks.cpp @@ -110,14 +110,14 @@ static struct IFACE : public KIFACE_I KIFACE_I( aName, aType ) {} - bool OnKifaceStart( PGM_BASE* aProgram, int aCtlBits ) + bool OnKifaceStart( PGM_BASE* aProgram, int aCtlBits ) override { return true; } - void OnKifaceEnd() {} + void OnKifaceEnd() override {} - wxWindow* CreateWindow( wxWindow* aParent, int aClassId, KIWAY* aKiway, int aCtlBits = 0 ) + wxWindow* CreateWindow( wxWindow* aParent, int aClassId, KIWAY* aKiway, int aCtlBits = 0 ) override { assert( false ); return nullptr; @@ -134,7 +134,7 @@ static struct IFACE : public KIFACE_I * * @return void* - and must be cast into the know type. */ - void* IfaceOrAddress( int aDataId ) + void* IfaceOrAddress( int aDataId ) override { return NULL; } diff --git a/qa/common/pcb_test_frame.cpp b/qa/common/pcb_test_frame.cpp index ff699eac43..4b42ac0431 100644 --- a/qa/common/pcb_test_frame.cpp +++ b/qa/common/pcb_test_frame.cpp @@ -103,12 +103,12 @@ public: virtual ~TEST_ACTIONS() {}; - virtual OPT TranslateLegacyId( int aId ) + virtual OPT TranslateLegacyId( int aId ) override { return NULLOPT; } - void RegisterAllTools( TOOL_MANAGER* aToolManager ) + void RegisterAllTools( TOOL_MANAGER* aToolManager ) override { } }; diff --git a/qa/common/pcb_test_frame.h b/qa/common/pcb_test_frame.h index a95e78a334..bb1202f4a6 100644 --- a/qa/common/pcb_test_frame.h +++ b/qa/common/pcb_test_frame.h @@ -48,10 +48,10 @@ namespace KIGFX { class GAL_TEST_APP : public wxApp { public: - virtual bool OnInit(); + virtual bool OnInit() override; - virtual void OnInitCmdLine(wxCmdLineParser& parser); - virtual bool OnCmdLineParsed(wxCmdLineParser& parser); + virtual void OnInitCmdLine( wxCmdLineParser& parser ) override; + virtual bool OnCmdLineParsed( wxCmdLineParser& parser ) override; private: wxString m_filename; @@ -75,7 +75,7 @@ protected: virtual void OnExit(wxCommandEvent& event); virtual void OnMotion( wxMouseEvent& aEvent ); - virtual void OnMenuFileOpen( wxCommandEvent& WXUNUSED(event) ); + virtual void OnMenuFileOpen( wxCommandEvent& WXUNUSED( event ) ); void buildView();