X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/60149370ac34d59e136a3aab6b00388d8306ae8d..2fe212b0336512aac9eace69fab09ce856b0bf4b:/src/mac/carbon/listbox.cpp?ds=sidebyside diff --git a/src/mac/carbon/listbox.cpp b/src/mac/carbon/listbox.cpp index 780e28bc7e..cb3a39dbd9 100644 --- a/src/mac/carbon/listbox.cpp +++ b/src/mac/carbon/listbox.cpp @@ -32,7 +32,7 @@ BEGIN_EVENT_TABLE(wxListBox, wxControl) END_EVENT_TABLE() #endif -#include +#include "wx/mac/uma.h" extern "C" void MacDrawStringCell(Rect *cellRect, Cell lCell, ListHandle theList, long refCon) ; const short kwxMacListWithVerticalScrollbar = 128 ; @@ -195,7 +195,7 @@ void wxListBox::Delete(int N) #if wxUSE_OWNER_DRAWN delete m_aItems[N]; - m_aItems.Remove(N); + m_aItems.RemoveAt(N); #else // !wxUSE_OWNER_DRAWN if ( HasClientObjectData() ) { @@ -308,7 +308,7 @@ int wxListBox::FindString(const wxString& st) const if ( EqualString( s1 , s2 , false , false ) ) return i ; } - if ( s.Left(1) = "*" && s.Length() > 1 ) + if ( s.Left(1) == "*" && s.Length() > 1 ) { s.MakeLower() ; for ( int i = 0 ; i < m_noItems ; ++i )