X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a236aa2058ccf3d36e9cafc20fa7375080c4be50..ac0c512d865e6236fc81882cb84cc38d09f8f0ec:/src/univ/listbox.cpp?ds=sidebyside diff --git a/src/univ/listbox.cpp b/src/univ/listbox.cpp index 7c1ca6dcca..0255489bce 100644 --- a/src/univ/listbox.cpp +++ b/src/univ/listbox.cpp @@ -97,7 +97,7 @@ protected: // implementation of wxListBox // ============================================================================ -IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl) +IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControlWithItems) BEGIN_EVENT_TABLE(wxListBox, wxListBoxBase) EVT_SIZE(wxListBox::OnSize) @@ -192,7 +192,7 @@ bool wxListBox::Create(wxWindow *parent, validator, name) ) return false; - m_strings = IsSorted() ? new wxArrayString : new wxSortedArrayString; + m_strings = IsSorted() ? new wxSortedArrayString : new wxArrayString; Set(n, choices);