Browse Source

Fix minoe compil warnings (missing override)

pull/5/merge
jean-pierre charras 8 years ago
parent
commit
bf013f5b63
  1. 8
      qa/common/mocks.cpp
  2. 4
      qa/common/pcb_test_frame.cpp
  3. 8
      qa/common/pcb_test_frame.h

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

4
qa/common/pcb_test_frame.cpp

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

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

Loading…
Cancel
Save