fix more -Wparentheses warnings after wxLog changes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-07-19 16:16:46 +00:00
parent c0e616bb3d
commit 9fceb168bc
3 changed files with 11 additions and 0 deletions

View File

@@ -890,7 +890,9 @@ wxBitmap BitmapComboBoxWidgetsPage::QueryBitmap(wxString* pStr)
}
if (bitmap.IsOk())
{
wxLogDebug(wxT("%i, %i"),bitmap.GetWidth(), bitmap.GetHeight());
}
::wxSetCursor( *wxSTANDARD_CURSOR );

View File

@@ -306,11 +306,17 @@ void FileCtrlWidgetsPage::OnRadioBox( wxCommandEvent& WXUNUSED( event ) )
void FileCtrlWidgetsPage::OnFileCtrl( wxFileCtrlEvent& event )
{
if ( event.GetEventType() == wxEVT_FILECTRL_FOLDERCHANGED )
{
wxLogMessage("Folder changed event, new folder: %s", event.GetDirectory());
}
else if ( event.GetEventType() == wxEVT_FILECTRL_FILEACTIVATED )
{
wxLogMessage("File activated event: %s", wxJoin(event.GetFiles(), ' '));
}
else if ( event.GetEventType() == wxEVT_FILECTRL_SELECTIONCHANGED )
{
wxLogMessage("Selection changed event: %s", wxJoin(event.GetFiles(), ' '));
}
}
#endif // wxUSE_FILECTRL

View File

@@ -448,7 +448,10 @@ ListboxWidgetsPage::GetValidIndexFromText(const wxTextCtrl *text, int *n) const
// want to retrieve the value as this is only done in answer to a user
// action
if ( n )
{
wxLogWarning("Invalid index \"%s\"", text->GetValue());
}
return false;
}