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 <vadim@wxwidgets.org>

Closes #22599.
This commit is contained in:
PB 2022-07-05 01:36:42 +02:00 committed by Vadim Zeitlin
parent 6c65510a2c
commit 8d3812adce

View file

@ -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