diff --git a/qa/mocks/include/mock_pgm_base.h b/qa/mocks/include/mock_pgm_base.h index 4123fd6048..b266621300 100644 --- a/qa/mocks/include/mock_pgm_base.h +++ b/qa/mocks/include/mock_pgm_base.h @@ -34,7 +34,7 @@ MOCK_BASE_CLASS( MOCK_PGM_BASE, PGM_BASE ) MOCK_METHOD( GetCommonSettings, 0, COMMON_SETTINGS*() ); MOCK_METHOD( SetTextEditor, 1, void( const wxString& ) ); MOCK_METHOD( GetTextEditor, 1, wxString&( bool ) ); - MOCK_METHOD( AskUserForPreferredEditor, 1, wxString&( wxString& ) ); + MOCK_METHOD( AskUserForPreferredEditor, 1, const wxString( const wxString& ) ); MOCK_CONST_METHOD( IsKicadEnvVariableDefined, 0, bool() ); MOCK_CONST_METHOD( GetKicadEnvVariable, 0, const wxString&() ); MOCK_CONST_METHOD( GetPdfBrowserName, 0, const wxString&() );