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

@@ -24,6 +24,7 @@
#include "wx/wxchar.h"
#endif // WX_PRECOMP
#include "wx/private/localeset.h"
// NOTE: for more info about the specification of wxVsnprintf() behaviour you can
// refer to the following page of the GNU libc manual:
@@ -85,10 +86,10 @@ wxUnsafeSnprintf(T *buf, size_t len, const wxChar *fmt, ...)
// Explicitly set C locale to avoid check failures when running on machines
// with a locale where the decimal point is not '.'
class VsnprintfTestCase : CLocaleSetter
class VsnprintfTestCase : wxCLocaleSetter
{
public:
VsnprintfTestCase() : CLocaleSetter() { }
VsnprintfTestCase() : wxCLocaleSetter() { }
protected:
template<typename T>