X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c9d59ee7e0cbe4acae6153adafb5ddce9a4e65dd..ddc80eb4eb7e96ff23ebe329283bb2b940dd1df2:/src/common/choiccmn.cpp?ds=sidebyside diff --git a/src/common/choiccmn.cpp b/src/common/choiccmn.cpp index a4be5ca35c..50c633894e 100644 --- a/src/common/choiccmn.cpp +++ b/src/common/choiccmn.cpp @@ -43,28 +43,13 @@ wxChoiceBase::~wxChoiceBase() // this destructor is required for Darwin } -// ---------------------------------------------------------------------------- -// selection -// ---------------------------------------------------------------------------- - -bool wxChoiceBase::SetStringSelection(const wxString& s) -{ - int sel = FindString(s); - wxCHECK_MSG( sel != -1, false, - wxT("invalid string in wxChoice::SetStringSelection") ); - - Select(sel); - - return true; -} - // ---------------------------------------------------------------------------- // misc // ---------------------------------------------------------------------------- void wxChoiceBase::Command(wxCommandEvent& event) { - SetSelection(event.m_commandInt); + SetSelection(event.GetInt()); (void)ProcessEvent(event); }