]> git.saurik.com Git - wxWidgets.git/commitdiff
DMC fixes
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 25 Apr 2004 11:06:02 +0000 (11:06 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 25 Apr 2004 11:06:02 +0000 (11:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/regex/regex.cpp
tests/test.cpp

index d2eb0d4056525477c8669393dbd2f2c6b0a55823..27517c8f8a849123b4c66ae138f592ddcfdc4650 100644 (file)
 #include "wx/cppunit.h"
 #include <stdexcept>
 
+#ifdef __DMC__
+    #include <locale.h>
+#endif
+
 using namespace std;
 using namespace CppUnit;
 
index 2ed648499314b2cd1cb12d8cf84bf45628e55f7b..040ed7eeda3ba785b7216aed86539c914f0c61b3 100644 (file)
@@ -157,10 +157,10 @@ void TestApp::List(Test *test, const string& parent /*=""*/) const
             cout << "  " << name.substr(i + 1) << "\n";
         }
 
-        typedef const vector<Test*> Tests;
+        typedef vector<Test*> Tests;
         typedef Tests::const_iterator Iter;
 
-        Tests& tests = suite->getTests();
+        const Tests& tests = suite->getTests();
 
         for (Iter it = tests.begin(); it != tests.end(); ++it)
             List(*it, name);