]> git.saurik.com Git - wxWidgets.git/commitdiff
Make AsyncExecLoopExitEnum enum in the wxExecute() test public.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 3 Jul 2013 11:03:09 +0000 (11:03 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 3 Jul 2013 11:03:09 +0000 (11:03 +0000)
This fixes VC6 build as the nested class couldn't access a private enum inside
the enclosing class.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/exec/exec.cpp

index 7a4ee95b6fae80bb0beebed027b8ae1eafa9221e..d493f39bb6ad14167a1bb3d88be6e3f1c5adbd2f 100644 (file)
 
 #define SLEEP_END_STRING "Done sleeping"
 
+namespace
+{
+    enum AsyncExecLoopExitEnum
+    {
+        AsyncExec_DontExitLoop,
+        AsyncExec_ExitLoop
+    };
+} // anonymous namespace
+
 // ----------------------------------------------------------------------------
 // test class
 // ----------------------------------------------------------------------------
@@ -94,12 +103,6 @@ private:
                              CheckStream check,
                              const char* expectedContaining);
 
-    enum AsyncExecLoopExitEnum
-    {
-        AsyncExec_DontExitLoop,
-        AsyncExec_ExitLoop
-    };
-
     // This class is used as a helper in order to run wxExecute(ASYNC)
     // inside of an event loop.
     class AsyncInEventLoop : public wxTimer