Fix minoe compil warnings (missing override)

This commit is contained in:
jean-pierre charras 2017-11-06 10:23:00 +01:00
parent ad9916e2cc
commit bf013f5b63
3 changed files with 10 additions and 10 deletions

View File

@ -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;
}

View File

@ -103,12 +103,12 @@ public:
virtual ~TEST_ACTIONS() {};
virtual OPT<TOOL_EVENT> TranslateLegacyId( int aId )
virtual OPT<TOOL_EVENT> TranslateLegacyId( int aId ) override
{
return NULLOPT;
}
void RegisterAllTools( TOOL_MANAGER* aToolManager )
void RegisterAllTools( TOOL_MANAGER* aToolManager ) override
{
}
};

View File

@ -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();