From: Vadim Zeitlin Date: Mon, 13 Feb 2006 14:58:21 +0000 (+0000) Subject: use C cast instead of reinterpret_cast which doesn't work for casting pointers to... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a64bba4eb514ccfc6712b1929644b1cd0de481c8 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 --- diff --git a/src/msw/fdrepdlg.cpp b/src/msw/fdrepdlg.cpp index 27711a8dc0..7c6884739a 100644 --- a/src/msw/fdrepdlg.cpp +++ b/src/msw/fdrepdlg.cpp @@ -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