From: Vadim Zeitlin Date: Sat, 2 Aug 2003 00:15:55 +0000 (+0000) Subject: replaced an #ifdef __WXDEBUG__ with a wxCHECK (this is what we have it for...) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fbaf7d14219b87f528d9d766ea59a710e5a38068?ds=inline replaced an #ifdef __WXDEBUG__ with a wxCHECK (this is what we have it for...) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/dcclient.cpp b/src/msw/dcclient.cpp index 748fe83850..77bc59c15c 100644 --- a/src/msw/dcclient.cpp +++ b/src/msw/dcclient.cpp @@ -310,15 +310,11 @@ WXHDC wxPaintDC::FindDCInCache(wxWindow* win) * wxPaintDCEx */ +// TODO: don't duplicate wxPaintDC code here!! + wxPaintDCEx::wxPaintDCEx(wxWindow *canvas, WXHDC dc) : saveState(0) { -#ifdef __WXDEBUG__ - if ( !dc ) - { - wxFAIL_MSG( wxT("wxPaintDCEx requires an existing device context") ); - return; - } -#endif // __WXDEBUG__ + wxCHECK_RET( dc, wxT("wxPaintDCEx requires an existing device context") ); m_canvas = canvas;