]> git.saurik.com Git - wxWidgets.git/commitdiff
move functions using deprecated methods out of line to avoid deprecation warnings...
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 27 Feb 2009 10:21:38 +0000 (10:21 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 27 Feb 2009 10:21:38 +0000 (10:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/event.h
src/common/event.cpp

index f737b250771f6643ca9be5f31fc62d913518dce2..302036e45e9c09ff96160a286431b5365da129e6 100644 (file)
@@ -3093,30 +3093,13 @@ protected:
     // this one is called before trying our own event table to allow plugging
     // in the event handlers overriding the default logic, this is used by e.g.
     // validators.
-    virtual bool TryBefore(wxEvent& event)
-    {
-#ifdef WXWIN_COMPATIBILITY_2_8
-        // call the old virtual function to keep the code overriding it working
-        return TryValidator(event);
-#else
-        wxUnusedVar(event);
-        return false;
-#endif
-    }
+    virtual bool TryBefore(wxEvent& event);
 
     // this one is called after failing to find the event handle in our own
     // table to give a chance to the other windows to process it
     //
     // base class implementation passes the event to wxTheApp
-    virtual bool TryAfter(wxEvent& event)
-    {
-#ifdef WXWIN_COMPATIBILITY_2_8
-        // as above, call the old virtual function for compatibility
-        return TryParent(event);
-#else
-        return DoTryApp(event);
-#endif
-    }
+    virtual bool TryAfter(wxEvent& event);
 
 #ifdef WXWIN_COMPATIBILITY_2_8
     // deprecated method: override TryBefore() instead of this one
index 70248469f009dce5a79711c87569450abd4efb74..af8b2ac1b2038cf41c96e046f7cb407c0aa23d23 100644 (file)
@@ -1296,6 +1296,27 @@ bool wxEvtHandler::DoTryApp(wxEvent& event)
     return false;
 }
 
+bool wxEvtHandler::TryBefore(wxEvent& event)
+{
+#ifdef WXWIN_COMPATIBILITY_2_8
+    // call the old virtual function to keep the code overriding it working
+    return TryValidator(event);
+#else
+    wxUnusedVar(event);
+    return false;
+#endif
+}
+
+bool wxEvtHandler::TryAfter(wxEvent& event)
+{
+#ifdef WXWIN_COMPATIBILITY_2_8
+    // as above, call the old virtual function for compatibility
+    return TryParent(event);
+#else
+    return DoTryApp(event);
+#endif
+}
+
 bool wxEvtHandler::ProcessEvent(wxEvent& event)
 {
     // allow the application to hook into event processing