X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/92218ce60024b07e9ae5a5790a85582db083e55c..08f8037109b15f6fe0c19dbff26a1ff4ef1adddc:/src/msw/ownerdrw.cpp diff --git a/src/msw/ownerdrw.cpp b/src/msw/ownerdrw.cpp index fb83215f33..4beaf8b4b0 100644 --- a/src/msw/ownerdrw.cpp +++ b/src/msw/ownerdrw.cpp @@ -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; }