]> git.saurik.com Git - wxWidgets.git/commit
Re-define push_back() in wxSortedArrayString to behave correctly.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 10 Apr 2011 15:36:07 +0000 (15:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 10 Apr 2011 15:36:07 +0000 (15:36 +0000)
commit0287ae5c754c6d6f573f1980954f278c6120bff2
treedf8ef0120f54ec5e057e6f67df9b07229cfafb70
parentceb9b8db81a7ae5d1c997610a689e47d322a5dfd
Re-define push_back() in wxSortedArrayString to behave correctly.

Adding items to wxSortedArrayString should always keep them sorted but while
Add() did this, push_back() didn't breaking the class invariant.

Redefine push_back() in _WX_DEFINE_SORTED_TYPEARRAY_2 macro to fix this and
add a unit test checking that wxSortedArrayString::push_back() does work now.

Closes #13134.

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