]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed containr.h compilation with gcc.
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Mon, 25 Jul 2011 22:31:17 +0000 (22:31 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Mon, 25 Jul 2011 22:31:17 +0000 (22:31 +0000)
At least apple-gcc 4.0 and 4.2 gave a compilation error on the three Connect calls in containr.h, insisting (unless using -fpermissive) on a declaration of Connect because there are no arguments to it that depend on a template parameter. Fixed by prepending BaseWindowClass to the Connect calls. Regression since r68363.

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

include/wx/containr.h

index 7cb13e8fc10e8a347e7934551055e8e28eb2e5c9..3e7b5e38c13238209cda62dffc2d3d411cb1e379 100644 (file)
@@ -166,13 +166,13 @@ public:
         m_container.SetContainerWindow(this);
 
 #ifndef wxHAS_NATIVE_TAB_TRAVERSAL
-        Connect(wxEVT_NAVIGATION_KEY,
+        BaseWindowClass::Connect(wxEVT_NAVIGATION_KEY,
                 wxNavigationKeyEventHandler(wxNavigationEnabled::OnNavigationKey));
 
-        Connect(wxEVT_SET_FOCUS,
+        BaseWindowClass::Connect(wxEVT_SET_FOCUS,
                 wxFocusEventHandler(wxNavigationEnabled::OnFocus));
 
-        Connect(wxEVT_CHILD_FOCUS,
+        BaseWindowClass::Connect(wxEVT_CHILD_FOCUS,
                 wxChildFocusEventHandler(wxNavigationEnabled::OnChildFocus));
 #endif // !wxHAS_NATIVE_TAB_TRAVERSAL
     }