]> git.saurik.com Git - wxWidgets.git/commitdiff
STL build compilation fix.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 9 Dec 2009 13:27:53 +0000 (13:27 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 9 Dec 2009 13:27:53 +0000 (13:27 +0000)
Explicitly cast wxWindowBase pointer to wxWindow before passing it to
wxWindowList::Find().

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

src/common/wincmn.cpp

index 8cbef7716845ecb2b9e33df9d4724c2af7670ba3..27a560c9b9e6953200998a08b20353b4f082c2ec 100644 (file)
@@ -243,7 +243,9 @@ bool wxWindowBase::CreateBase(wxWindowBase *parent,
     // size, this worked like this in wxWidgets 2.8 and before and generally
     // often makes sense for child windows (for top level ones it definitely
     // does not as the user should be able to resize the window)
-    if ( !wxTopLevelWindows.Find(this) ) // can't use IsTopLevel() from ctor
+    //
+    // note that we can't use IsTopLevel() from ctor
+    if ( !wxTopLevelWindows.Find((wxWindow *)this) )
         SetMinSize(size);
 
     SetName(name);