From a2a8fc1d65d4a00136e9bbf209ce71f408005749 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 25 Dec 2023 17:56:10 +0100 Subject: [PATCH] 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. --- tests/test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test.cpp b/tests/test.cpp index 1111b7cd30..9e37f1da5d 100644 --- a/tests/test.cpp +++ b/tests/test.cpp @@ -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