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:
@@ -96,6 +96,7 @@ All:
|
|||||||
- wxHashMap::insert() doesn't update the value if it didn't insert the element
|
- wxHashMap::insert() doesn't update the value if it didn't insert the element
|
||||||
any more (Marcin Malich).
|
any more (Marcin Malich).
|
||||||
- Correct bug in wxTimeSpan::Format() for negative spans.
|
- Correct bug in wxTimeSpan::Format() for negative spans.
|
||||||
|
- Correct several bugs in wxList using end() iterators (Suzumizaki-Kimitaka).
|
||||||
- Added Vietnamese translation (Tran Ngoc Quan).
|
- Added Vietnamese translation (Tran Ngoc Quan).
|
||||||
- Updated Slovenian translation (Martin Srebotnjak).
|
- Updated Slovenian translation (Martin Srebotnjak).
|
||||||
- Corrected Serbian locale name (Cody Precord).
|
- Corrected Serbian locale name (Cody Precord).
|
||||||
|
@@ -1055,7 +1055,9 @@ private:
|
|||||||
} \
|
} \
|
||||||
iterator erase(const iterator& first, const iterator& last) \
|
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); \
|
DeleteNodes(first.m_node, last.m_node); \
|
||||||
return next; \
|
return next; \
|
||||||
} \
|
} \
|
||||||
|
Reference in New Issue
Block a user