X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/05689a13cc183d26a54c4a082bc5a6d6efd177e4..2b9a7d4cc2f5f55df3d83f7cf2160cf9a509a4f2:/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); }