fix wxList::erase(it, end()) in non-STL build (see #10103)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@58734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-02-07 23:10:56 +00:00
parent 455f81ac36
commit 990168e923
2 changed files with 4 additions and 1 deletions

View File

@@ -96,6 +96,7 @@ All:
- wxHashMap::insert() doesn't update the value if it didn't insert the element
any more (Marcin Malich).
- Correct bug in wxTimeSpan::Format() for negative spans.
- Correct several bugs in wxList using end() iterators (Suzumizaki-Kimitaka).
- Added Vietnamese translation (Tran Ngoc Quan).
- Updated Slovenian translation (Martin Srebotnjak).
- Corrected Serbian locale name (Cody Precord).

View File

@@ -1055,7 +1055,9 @@ private:
} \
iterator erase(const iterator& first, const iterator& last) \
{ \
iterator next = last; ++next; \
iterator next = last; \
if ( next != end() ) \
++next; \
DeleteNodes(first.m_node, last.m_node); \
return next; \
} \