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:
parent
4d5d3cb924
commit
b93f4239bb
@ -4925,7 +4925,8 @@ bool wxWindowMSW::HandleEraseBkgnd(WXHDC hdc)
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user