Avoid harmless MSVC shadowing warning in the test

Using "argc" and "argv" for parameter names triggers C4458 with MSVS
2022, warning about hiding class members with the same names.

As we can't rename the latter, rename the parameters to avoid this.
This commit is contained in:
Vadim Zeitlin 2023-12-25 17:56:10 +01:00
parent 2573e61c19
commit a2a8fc1d65

View file

@ -364,10 +364,10 @@ public:
return !wxGetEnv(wxASCII_STR("WX_TEST_DISABLE_GUI"), nullptr);
}
virtual bool Initialize(int& argc, wxChar **argv) override
virtual bool Initialize(int& argcIn, wxChar **argvIn) override
{
return IsGUIEnabled() ? wxApp::Initialize(argc, argv)
: wxAppConsole::Initialize(argc, argv);
return IsGUIEnabled() ? wxApp::Initialize(argcIn, argvIn)
: wxAppConsole::Initialize(argcIn, argvIn);
}
virtual bool OnInitGui() override