STL build compilation fix.

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
This commit is contained in:
Vadim Zeitlin 2009-12-09 13:27:53 +00:00
parent c200f9a3b7
commit 54a3120e95

View 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);