X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bb5a951418acd22d69a7f1973319f47190fbac79..9afa58e3b924dbef7fd0d45bb0bbee68fe3aac7d:/tests/benchmarks/strings.cpp?ds=sidebyside diff --git a/tests/benchmarks/strings.cpp b/tests/benchmarks/strings.cpp index b1ee26936d..6ea1f53e86 100644 --- a/tests/benchmarks/strings.cpp +++ b/tests/benchmarks/strings.cpp @@ -315,28 +315,28 @@ BENCHMARK_FUNC(StrcmpA) { const wxString& s = GetTestAsciiString(); - return wxCRT_StrcmpA(s, s) == 0; + return wxCRT_StrcmpA(s.c_str(), s.c_str()) == 0; } BENCHMARK_FUNC(StrcmpW) { const wxString& s = GetTestAsciiString(); - return wxCRT_StrcmpW(s, s) == 0; + return wxCRT_StrcmpW(s.wc_str(), s.wc_str()) == 0; } BENCHMARK_FUNC(StricmpA) { const wxString& s = GetTestAsciiString(); - return wxCRT_StricmpA(s, s) == 0; + return wxCRT_StricmpA(s.c_str(), s.c_str()) == 0; } BENCHMARK_FUNC(StricmpW) { const wxString& s = GetTestAsciiString(); - return wxCRT_StricmpW(s, s) == 0; + return wxCRT_StricmpW(s.wc_str(), s.wc_str()) == 0; } BENCHMARK_FUNC(StringCmp)