Compilation fix for MinGW STL build.
std::tr1::unordeded_map<T *>::find() doesn't accept "const T *" pointer, at least with MinGW 4.4.0 standard library version, so add an explicit const_cast<> to fix compilation. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4925,7 +4925,8 @@ bool wxWindowMSW::HandleEraseBkgnd(WXHDC hdc)
|
|||||||
|
|
||||||
bool wxWindowMSW::MSWHasEraseBgHook() const
|
bool wxWindowMSW::MSWHasEraseBgHook() const
|
||||||
{
|
{
|
||||||
return gs_eraseBgHooks.find(this) != gs_eraseBgHooks.end();
|
return gs_eraseBgHooks.find(const_cast<wxWindowMSW *>(this))
|
||||||
|
!= gs_eraseBgHooks.end();
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxWindowMSW::MSWSetEraseBgHook(wxWindow *child)
|
void wxWindowMSW::MSWSetEraseBgHook(wxWindow *child)
|
||||||
|
Reference in New Issue
Block a user