]> git.saurik.com Git - wxWidgets.git/commitdiff
use C cast instead of reinterpret_cast which doesn't work for casting pointers to...
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 13 Feb 2006 14:58:21 +0000 (14:58 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 13 Feb 2006 14:58:21 +0000 (14:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/fdrepdlg.cpp

index 27711a8dc0d08a8d047f0cc4d06b898dd6bc5bf7..7c6884739aa5ddf520c92c1acdd114fb8db0986c 100644 (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