From 6db0ad4876a0f801f51562173e3f359bf8578311 Mon Sep 17 00:00:00 2001 From: Sylwester Kocjan Date: Sat, 19 Mar 2022 23:07:48 +0100 Subject: [PATCH] qa: add missing const to mocked method --- qa/mocks/include/mock_pgm_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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&() );