Extract wxLocaleSetter from the tests into a private header

This will allow using this class in the library code too.

No real changes yet, this is a pure refactoring.

This commit is best viewed using git --color-moved option.
This commit is contained in:
Vadim Zeitlin
2021-08-03 01:14:24 +02:00
parent ebec1ff9f6
commit a4940bf696
7 changed files with 64 additions and 38 deletions

View File

@@ -22,6 +22,8 @@
#include "wx/txtstrm.h"
#include "wx/mstream.h"
#include "wx/private/localeset.h"
#if defined wxHAVE_TCHAR_SUPPORT && !defined HAVE_WCHAR_H
#define HAVE_WCHAR_H
#endif
@@ -1106,7 +1108,7 @@ void MBConvTestCase::LibcTests()
// supposed to use the same CRT -- no idea why and unfortunately gdb is too
// flaky to debug it)
#ifdef __VISUALC__
LocaleSetter loc("English_United States.1252");
wxLocaleSetter loc("English_United States.1252");
wxMBConvLibc convLibc;
TestCoder(