From 8d3812adced65e582229a7fcd1233b027b830cec Mon Sep 17 00:00:00 2001 From: PB Date: Tue, 5 Jul 2022 01:36:42 +0200 Subject: [PATCH] Fix wxDynamicLibrary unit test compilation in C++20 mode Don't use operator<<() with a wide char string, as this overload has been removed in C++20. This can be done simply by not using wide char string at all in this test, as it's not really needed. Co-Authored-By: Vadim Zeitlin Closes #22599. --- tests/misc/dynamiclib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/misc/dynamiclib.cpp b/tests/misc/dynamiclib.cpp index 8747c702fb..b0d197dcbf 100644 --- a/tests/misc/dynamiclib.cpp +++ b/tests/misc/dynamiclib.cpp @@ -87,7 +87,7 @@ TEST_CASE("DynamicLibrary::Load", "[dynlib]") #ifdef __WINDOWS__ SECTION("A/W") { - static const wxChar *FUNC_NAME_AW = wxT("lstrlen"); + static const char* const FUNC_NAME_AW = "lstrlen"; typedef int (wxSTDCALL *wxStrlenTypeAorW)(const wxChar *); wxStrlenTypeAorW