]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/docview.h
Don't infinitely recurse when setting the child focus. Without
[wxWidgets.git] / include / wx / docview.h
index ad37b58939c68422676277650aee4692cde9e96e..11989e4c1a51610aca6902afda20a02ebb27cfd0 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef _WX_DOCH__
 #define _WX_DOCH__
 
-#if defined(__GNUG__) && !defined(__APPLE__)
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma interface "docview.h"
 #endif
 
@@ -202,11 +202,6 @@ public:
     // Override to do cleanup/veto close
     virtual bool OnClose(bool deleteWindow);
 
-#if WXWIN_COMPATIBILITY
-    // Defeat compiler warning
-    bool OnClose() { return wxEvtHandler::OnClose(); }
-#endif
-
     // Extend event processing to search the document's event table
     virtual bool ProcessEvent(wxEvent& event);