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
This commit is contained in:
parent
8b76325cdc
commit
e6113e3a52
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user