use C cast instead of reinterpret_cast which doesn't work for casting pointers to functions to pointers to objects

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-02-13 14:58:21 +00:00
parent 7af14d7187
commit a64bba4eb5

View File

@@ -190,8 +190,7 @@ void wxFindReplaceDialogImpl::SubclassDialog(HWND hwnd)
// check that we don't subclass the parent twice: this would be a bad idea
// as then we'd have infinite recursion in wxFindReplaceWindowProc
wxCHECK_RET( wxGetWindowProc(hwnd) !=
wx_reinterpret_cast(void *, wxFindReplaceWindowProc),
wxCHECK_RET( wxGetWindowProc(hwnd) != (void *)wxFindReplaceWindowProc,
_T("can't have more than one find dialog currently") );
// set the new one and save the old as user data to allow access to it