From 5737bab736a5699b6393c1d190c0cbb5df8a1af7 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 3 Jul 2013 11:03:09 +0000 Subject: [PATCH] Make AsyncExecLoopExitEnum enum in the wxExecute() test public. 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 | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/tests/exec/exec.cpp b/tests/exec/exec.cpp index 7a4ee95b6f..d493f39bb6 100644 --- a/tests/exec/exec.cpp +++ b/tests/exec/exec.cpp @@ -49,6 +49,15 @@ #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 -- 2.47.2