X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/60149370ac34d59e136a3aab6b00388d8306ae8d..594f0f5bf1355fb8d58f403d3ebacc1c1767c429:/src/mac/listbox.cpp?ds=inline diff --git a/src/mac/listbox.cpp b/src/mac/listbox.cpp index 780e28bc7e..cb3a39dbd9 100644 --- a/src/mac/listbox.cpp +++ b/src/mac/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 )