From: Vadim Zeitlin Date: Sun, 19 Jul 2009 16:16:46 +0000 (+0000) Subject: fix more -Wparentheses warnings after wxLog changes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9fceb168bcfa433a0c0c30e531582e14d70d968f fix more -Wparentheses warnings after wxLog changes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/widgets/bmpcombobox.cpp b/samples/widgets/bmpcombobox.cpp index 6de6f2ff54..af54170ef0 100644 --- a/samples/widgets/bmpcombobox.cpp +++ b/samples/widgets/bmpcombobox.cpp @@ -890,7 +890,9 @@ wxBitmap BitmapComboBoxWidgetsPage::QueryBitmap(wxString* pStr) } if (bitmap.IsOk()) + { wxLogDebug(wxT("%i, %i"),bitmap.GetWidth(), bitmap.GetHeight()); + } ::wxSetCursor( *wxSTANDARD_CURSOR ); diff --git a/samples/widgets/filectrl.cpp b/samples/widgets/filectrl.cpp index 4a83c69830..773e11803e 100644 --- a/samples/widgets/filectrl.cpp +++ b/samples/widgets/filectrl.cpp @@ -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 diff --git a/samples/widgets/listbox.cpp b/samples/widgets/listbox.cpp index 5a894aad8b..0d41d68b0f 100644 --- a/samples/widgets/listbox.cpp +++ b/samples/widgets/listbox.cpp @@ -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; }