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:
Vadim Zeitlin
2006-09-09 13:10:32 +00:00
parent 8b76325cdc
commit e6113e3a52

View File

@@ -536,7 +536,9 @@ private:
{ {
m_modeOld = ::SetMapMode(hdc, mm); m_modeOld = ::SetMapMode(hdc, mm);
if ( !m_modeOld ) if ( !m_modeOld )
{
wxLogLastError(_T("SelectClipRgn")); wxLogLastError(_T("SelectClipRgn"));
}
} }
~HDCMapModeChanger() ~HDCMapModeChanger()
@@ -565,13 +567,17 @@ public:
{ {
m_hGlobal = ::GlobalAlloc(flags, size); m_hGlobal = ::GlobalAlloc(flags, size);
if ( !m_hGlobal ) if ( !m_hGlobal )
{
wxLogLastError(_T("GlobalAlloc")); wxLogLastError(_T("GlobalAlloc"));
}
} }
~GlobalPtr() ~GlobalPtr()
{ {
if ( m_hGlobal && ::GlobalFree(m_hGlobal) ) if ( m_hGlobal && ::GlobalFree(m_hGlobal) )
{
wxLogLastError(_T("GlobalFree")); wxLogLastError(_T("GlobalFree"));
}
} }
// implicit conversion // implicit conversion