From 54a3120e951e7e478d87ea862880e4ee3f8b9dd9 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 9 Dec 2009 13:27:53 +0000 Subject: [PATCH] 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 --- src/common/wincmn.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 8cbef77168..27a560c9b9 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -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); -- 2.45.2