]> git.saurik.com Git - wxWidgets.git/commitdiff
put wxSetLocale() call in setUp() as VC6 still fails because of wrong locale in Vsnpr...
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Mon, 23 Mar 2009 16:25:44 +0000 (16:25 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Mon, 23 Mar 2009 16:25:44 +0000 (16:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59785 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/strings/vsnprintf.cpp

index 1aaa61a44081763f4d0dc7c8f8607b6369a0dc03..5f9a60796c5efaf8202cebb03cd81203fefd4a2b 100644 (file)
@@ -116,8 +116,10 @@ wxUnsafeSnprintf(T *buf, size_t len, const wxChar *fmt, ...)
 class VsnprintfTestCase : public CppUnit::TestCase
 {
 public:
-    VsnprintfTestCase();
-    
+    VsnprintfTestCase() {}
+
+    virtual void setUp();
+
 private:
     CPPUNIT_TEST_SUITE( VsnprintfTestCase );
         CPPUNIT_TEST( C );
@@ -175,8 +177,6 @@ private:
                 size_t max, const wxChar *format, ...);
     void Miscellaneous();
 
-    virtual void setUp();
-
     DECLARE_NO_COPY_CLASS(VsnprintfTestCase)
 };
 
@@ -186,7 +186,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION( VsnprintfTestCase );
 // also include in it's own registry so that these tests can be run alone
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( VsnprintfTestCase, "VsnprintfTestCase" );
 
-VsnprintfTestCase::VsnprintfTestCase()
+void VsnprintfTestCase::setUp()
 {
     // this call is required to avoid check failures when running on machines
     // with a locale where the decimal point is not '.'