compilation fix for wxUSE_STL=1 and mingw

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35193 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-08-15 20:09:46 +00:00
parent baba4aa5ec
commit c73b4312f9

View File

@@ -170,7 +170,9 @@ wxOwnerDrawn::~wxOwnerDrawn()
bool wxOwnerDrawn::IsMenuItem() const
{
// TODO: in 2.7, replace this with simple "return m_isMenuItem"
return gs_menuItems.count(this) == 1;
// some versions of mingw have problems without const_cast when wxUSE_STL=1
return gs_menuItems.count(wx_const_cast(wxOwnerDrawn *, this)) == 1;
}