Use current locale for the benchmarks

The just added wxString::ToDouble() benchmark is locale-dependent, so
allow using the current locale for the tests.
This commit is contained in:
Vadim Zeitlin 2023-04-05 13:32:58 +02:00
parent b5bf41e8ba
commit ca2803922d

View file

@ -20,6 +20,7 @@
#include "wx/app.h"
#include "wx/cmdline.h"
#include "wx/stopwatch.h"
#include "wx/uilocale.h"
#if wxUSE_GUI
#include "wx/frame.h"
@ -117,6 +118,9 @@ bool BenchApp::OnInit()
if ( !BenchAppBase::OnInit() )
return false;
// Some benchmarks are locale-sensitive, so use the current locale.
wxUILocale::UseDefault();
wxPrintf("wxWidgets benchmarking program\n"
"Build: %s\n", WX_BUILD_OPTIONS_SIGNATURE);