Put braces around all calls to wxLogFunctions() inside an if statement.

This suppresses all the remaining g++ -Wparentheses warnings and uses consistent style everywhere.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-07-20 16:47:54 +00:00
parent c9cc9a2f3e
commit 43b2d5e7c3
79 changed files with 476 additions and 39 deletions

View File

@@ -60,7 +60,9 @@ bool wxOpenClipboard()
gs_wxClipboardIsOpen = ::OpenClipboard((HWND)win->GetHWND()) != 0;
if ( !gs_wxClipboardIsOpen )
{
wxLogSysError(_("Failed to open the clipboard."));
}
return gs_wxClipboardIsOpen;
}

View File

@@ -372,7 +372,9 @@ bool wxIniConfig::Write(const wxString& szKey, const wxString& WXUNUSED(szValue)
// szValue, m_strLocalFilename) != 0;
if ( !bOk )
{
wxLogLastError(wxT("WritePrivateProfileString"));
}
return bOk;
}
@@ -417,7 +419,9 @@ bool wxIniConfig::DeleteEntry(const wxString& szKey, bool bGroupIfEmptyAlso)
// NULL, m_strLocalFilename) != 0;
if ( !bOk )
{
wxLogLastError(wxT("WritePrivateProfileString"));
}
return bOk;
}
@@ -432,7 +436,9 @@ bool wxIniConfig::DeleteGroup(const wxString& szKey)
// NULL, m_strLocalFilename) != 0;
if ( !bOk )
{
wxLogLastError(wxT("WritePrivateProfileString"));
}
return bOk;
}

View File

@@ -1097,7 +1097,9 @@ void wxMenuBar::Attach(
,m_vAccelTable.GetHACCEL()
,(HWND)pFrame->GetFrame()
))
{
wxLogLastError(wxT("WinSetAccelTable"));
}
#endif // wxUSE_ACCEL
} // end of wxMenuBar::Attach

View File

@@ -124,7 +124,9 @@ wxMutexInternal::~wxMutexInternal()
if (m_vMutex)
{
if (::DosCloseMutexSem(m_vMutex))
{
wxLogLastError(_T("DosCloseMutexSem(mutex)"));
}
}
}

View File

@@ -71,7 +71,9 @@ void wxToolTip::Create(
,NULL
);
if (!m_hWnd)
{
wxLogError(_T("Unable to create tooltip window"));
}
wxColour vColor( wxT("YELLOW") );
lColor = (LONG)vColor.GetPixel();

View File

@@ -352,7 +352,9 @@ wxWindowOS2::~wxWindowOS2()
if (m_hWnd)
{
if(!::WinDestroyWindow(GetHWND()))
{
wxLogLastError(wxT("DestroyWindow"));
}
//
// remove hWnd <-> wxWindow association
//