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:
parent
b5bf41e8ba
commit
ca2803922d
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue