Workaround for wxUSE_STL

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2005-04-17 15:30:05 +00:00
parent 7d30268cd9
commit 7b6986c392

View File

@@ -80,10 +80,13 @@ bool wxChoice::Create(wxWindow *parent, wxWindowID id,
m_peer->SetValueAndRange( n > 0 ? 1 : 0 , 0 , 0 ) ;
MacPostControlCreate(pos,size) ;
// FIXME: STL version of wxArrayString doesn't have the same args
#if !wxUSE_STL
if ( style & wxCB_SORT )
{
m_strings = wxArrayString(1) ; // autosort
}
#endif
for ( int i = 0; i < n; i++ )
{