]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/controls/textentrytest.cpp
return URLs, not filenames, from wxFileSystem::FindFirst/FindNext() for the file...
[wxWidgets.git] / tests / controls / textentrytest.cpp
index 9b5bf74f06f5041fa9ae5619c809cfba1b0b36c2..70cc1f77ba658bcfcde070dfc4fa5c7b7d6b9d32 100644 (file)
@@ -36,7 +36,7 @@ void TextEntryTestCase::SetValue()
     CPPUNIT_ASSERT_EQUAL( "bye", entry->GetValue() );
 }
 
-void TextEntryTestCase::TextChangeEvents()
+namespace
 {
     class TextTestEventHandler : public wxEvtHandler
     {
@@ -55,7 +55,12 @@ void TextEntryTestCase::TextChangeEvents()
 
     private:
         int m_events;
-    } handler;
+    };
+}
+
+void TextEntryTestCase::TextChangeEvents()
+{
+    TextTestEventHandler handler;
 
     GetTestWindow()->Connect
                      (