]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/choiccmn.cpp
two changes and some cleanup:
[wxWidgets.git] / src / common / choiccmn.cpp
index 57ec42af309c15b6fd71bd8b184530aa2e2c6b11..d090aafd74983c17f998dd4f2dd0ef1cdc4accb0 100644 (file)
 // implementation
 // ============================================================================
 
+wxChoiceBase::~wxChoiceBase()
+{
+    // this destructor is required for Darwin
+}
+
 // ----------------------------------------------------------------------------
 // selection
 // ----------------------------------------------------------------------------
@@ -59,7 +64,7 @@ bool wxChoiceBase::SetStringSelection(const wxString& s)
 
 void wxChoiceBase::Command(wxCommandEvent& event)
 {
-    SetSelection(event.m_commandInt);
+    SetSelection(event.GetInt());
     (void)ProcessEvent(event);
 }