X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bc10103ec8203b5affe1a16b943049a2f27936bd..9f41fa227b8f3f0671d22216e2aa93c27840a597:/tests/regex/regex.cpp diff --git a/tests/regex/regex.cpp b/tests/regex/regex.cpp index d2eb0d4056..f8097554d5 100644 --- a/tests/regex/regex.cpp +++ b/tests/regex/regex.cpp @@ -319,36 +319,15 @@ wxString RegExTestCase::quote(const wxString& arg) /////////////////////////////////////////////////////////////////////////////// // Test suite -// -// In a non-unicode build the regex is affected by the current locale, so -// this derived TestSuite is used. It sets the locale in it's run() method -// for the duration of the regex tests. class RegExTestSuite : public TestSuite { public: - RegExTestSuite(string name); - void run(TestResult *result); + RegExTestSuite(string name) : TestSuite(name) { } void add(const char *mode, const char *id, const char *flags, const char *pattern, const char *data, const char *expected, ...); }; -// constructor, sets the locale so that it is set when the tests are added -// -RegExTestSuite::RegExTestSuite(string name) : TestSuite(name) -{ - setlocale(LC_ALL, ""); -} - -// run the test suite, sets the locale again since it may have been changed -// by another test since this suite was crated -// -void RegExTestSuite::run(TestResult *result) -{ - setlocale(LC_ALL, ""); - TestSuite::run(result); -} - // Add a testcase to the suite // void RegExTestSuite::add(