From: Vadim Zeitlin Date: Sun, 20 Feb 2005 14:38:17 +0000 (+0000) Subject: compilation fix for wxUSE_STL==1 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/80676593714aca5ba9003ef2fd6bc16dc6074eed?ds=inline compilation fix for wxUSE_STL==1 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/valtext.cpp b/src/common/valtext.cpp index 86211d8434..3fdd196499 100644 --- a/src/common/valtext.cpp +++ b/src/common/valtext.cpp @@ -221,8 +221,12 @@ inline void wxCopyStringListToArrayString(wxArrayString& to, const wxStringList& { to.Clear(); - for(wxStringList::Node* pNode = from.GetFirst(); pNode; pNode = pNode->GetNext()) + for ( wxStringList::compatibility_iterator pNode = from.GetFirst(); + pNode; + pNode = pNode->GetNext() ) + { to.Add(pNode->GetData()); + } } inline void wxCopyArrayStringToStringList(wxStringList& to, const wxArrayString& from)