]> git.saurik.com Git - wxWidgets.git/commit
Don't compare invalid iterators in wxCommandProcessor code.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 Nov 2010 15:14:49 +0000 (15:14 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 Nov 2010 15:14:49 +0000 (15:14 +0000)
commit7e0b0eb38fadc78f7a92404e604420ab49158292
tree95cde1ed571b3ff8f55b64b835551ba6b53e9fa8
parenta6c4ae18baa44623303624c19adab8cb7bbb8b25
Don't compare invalid iterators in wxCommandProcessor code.

Comparing invalid iterators results in an assert failure in STL build.

We might also change wxList::compatibility_iterator::operator==() to allow
comparing invalid iterators (which should be different from all the other ones
but what about comparing two invalid iterators?) but it would probably be
better to get rid of all uses of compatibility_iterator in the code instead in
the long term.

Closes #12730.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66287 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/cmdproc.cpp