X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/37f214d588b02079a3ddf64c2e46585ca1657c1b..33980f0da63a5c78e88df40d39b010fbe33d867a:/src/os2/checklst.cpp diff --git a/src/os2/checklst.cpp b/src/os2/checklst.cpp index 654dc3a1fc..05f0b829f2 100644 --- a/src/os2/checklst.cpp +++ b/src/os2/checklst.cpp @@ -44,9 +44,7 @@ // implementation // ============================================================================ -#if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox, wxListBox) -#endif // ---------------------------------------------------------------------------- // declaration and implementation of wxCheckListBoxItem class @@ -259,7 +257,9 @@ wxCheckListBox::wxCheckListBox() : wxListBox() wxCheckListBox::wxCheckListBox(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size, int nStrings, const wxString choices[], +#if wxUSE_VALIDATORS long style, const wxValidator& val, +#endif const wxString& name) : wxListBox() { @@ -269,7 +269,7 @@ wxCheckListBox::wxCheckListBox(wxWindow *parent, wxWindowID id, void wxCheckListBox::Delete(int N) { - wxCHECK_RET( N >= 0 && N < m_noItems, + wxCHECK_RET( N >= 0 && N < m_nNumItems, wxT("invalid index in wxListBox::Delete") ); wxListBox::Delete(N); @@ -277,12 +277,12 @@ void wxCheckListBox::Delete(int N) // free memory delete m_aItems[N]; - m_aItems.Remove(N); + m_aItems.RemoveAt(N); } void wxCheckListBox::InsertItems(int nItems, const wxString items[], int pos) { - wxCHECK_RET( pos >= 0 && pos <= m_noItems, + wxCHECK_RET( pos >= 0 && pos <= m_nNumItems, wxT("invalid index in wxCheckListBox::InsertItems") ); wxListBox::InsertItems(nItems, items, pos); @@ -377,7 +377,7 @@ void wxCheckListBox::OnLeftClick(wxMouseEvent& event) */ size_t nItem = 0; - if ( nItem < (size_t)m_noItems ) + if ( nItem < (size_t)m_nNumItems ) GetItem(nItem)->Toggle(); //else: it's not an error, just click outside of client zone }