From 9804c4d95c3c8abb492e24f5f7e989016fee53f1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 9 Sep 2006 13:25:01 +0000 Subject: [PATCH] undid last 2 commits, there are many more cases like this so it's better to fix this problem in a different way in wx/log.h git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/private.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/include/wx/msw/private.h b/include/wx/msw/private.h index 3d9a48d18a..dd0bd996a3 100644 --- a/include/wx/msw/private.h +++ b/include/wx/msw/private.h @@ -335,9 +335,7 @@ inline RECT wxGetWindowRect(HWND hwnd) RECT rect; if ( !::GetWindowRect(hwnd, &rect) ) - { wxLogLastError(_T("GetWindowRect")); - } return rect; } @@ -347,9 +345,7 @@ inline RECT wxGetClientRect(HWND hwnd) RECT rect; if ( !::GetClientRect(hwnd, &rect) ) - { wxLogLastError(_T("GetClientRect")); - } return rect; } @@ -505,9 +501,7 @@ public: : m_hdc(hdc) { if ( !::SelectClipRgn(hdc, hrgn) ) - { wxLogLastError(_T("SelectClipRgn")); - } } ~HDCClipper() @@ -536,9 +530,7 @@ private: { m_modeOld = ::SetMapMode(hdc, mm); if ( !m_modeOld ) - { wxLogLastError(_T("SelectClipRgn")); - } } ~HDCMapModeChanger() @@ -567,17 +559,13 @@ public: { m_hGlobal = ::GlobalAlloc(flags, size); if ( !m_hGlobal ) - { wxLogLastError(_T("GlobalAlloc")); - } } ~GlobalPtr() { if ( m_hGlobal && ::GlobalFree(m_hGlobal) ) - { wxLogLastError(_T("GlobalFree")); - } } // implicit conversion @@ -599,9 +587,7 @@ public: { m_ptr = GlobalLock(hGlobal); if ( !m_ptr ) - { wxLogLastError(_T("GlobalLock")); - } } ~GlobalPtrLock() -- 2.45.2