From e6113e3a52d1c1c486b3a31cb22b59e2d9555b2d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 9 Sep 2006 13:10:32 +0000 Subject: [PATCH] more warning fixes about empty if statement in helper classes in release build git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/private.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/wx/msw/private.h b/include/wx/msw/private.h index 8581da0c67..3d9a48d18a 100644 --- a/include/wx/msw/private.h +++ b/include/wx/msw/private.h @@ -536,7 +536,9 @@ private: { m_modeOld = ::SetMapMode(hdc, mm); if ( !m_modeOld ) + { wxLogLastError(_T("SelectClipRgn")); + } } ~HDCMapModeChanger() @@ -565,13 +567,17 @@ public: { m_hGlobal = ::GlobalAlloc(flags, size); if ( !m_hGlobal ) + { wxLogLastError(_T("GlobalAlloc")); + } } ~GlobalPtr() { if ( m_hGlobal && ::GlobalFree(m_hGlobal) ) + { wxLogLastError(_T("GlobalFree")); + } } // implicit conversion -- 2.47.2