]> git.saurik.com Git - wxWidgets.git/commit
Fix return value of wxList::insert() in non-STL builds.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 12 Apr 2010 00:36:36 +0000 (00:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 12 Apr 2010 00:36:36 +0000 (00:36 +0000)
commit8dd13d0fa1afd8e19af18a1a2c529130181cd54f
tree87e0860a329ec5fbda94db49de72d1ac63d17e76
parent89e1de6441845de971433531a7286d5bea06c3f5
Fix return value of wxList::insert() in non-STL builds.

The returned value was the same as the iterator that was passed in which could
even be invalid when appending.

Fix the wrong use of postfix decrement instead of prefix one and handle the
case of appending correctly.

Closes #11808.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/list.h
tests/lists/lists.cpp