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:
@@ -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;
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -1097,7 +1097,9 @@ void wxMenuBar::Attach(
|
||||
,m_vAccelTable.GetHACCEL()
|
||||
,(HWND)pFrame->GetFrame()
|
||||
))
|
||||
{
|
||||
wxLogLastError(wxT("WinSetAccelTable"));
|
||||
}
|
||||
#endif // wxUSE_ACCEL
|
||||
} // end of wxMenuBar::Attach
|
||||
|
||||
|
@@ -124,7 +124,9 @@ wxMutexInternal::~wxMutexInternal()
|
||||
if (m_vMutex)
|
||||
{
|
||||
if (::DosCloseMutexSem(m_vMutex))
|
||||
{
|
||||
wxLogLastError(_T("DosCloseMutexSem(mutex)"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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();
|
||||
|
@@ -352,7 +352,9 @@ wxWindowOS2::~wxWindowOS2()
|
||||
if (m_hWnd)
|
||||
{
|
||||
if(!::WinDestroyWindow(GetHWND()))
|
||||
{
|
||||
wxLogLastError(wxT("DestroyWindow"));
|
||||
}
|
||||
//
|
||||
// remove hWnd <-> wxWindow association
|
||||
//
|
||||
|
Reference in New Issue
Block a user