]> git.saurik.com Git - wxWidgets.git/commit
Made wxList::compatibility_iterator a class in wxUSE_STL == 0 case too instead
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 21 Mar 2006 14:05:11 +0000 (14:05 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 21 Mar 2006 14:05:11 +0000 (14:05 +0000)
commit0cc70962a1771fb53c1208648ca46c6185699fd2
tree1ffae02ce8d11604f30babd628756ff2dc0435ea
parent06840f179644bba45dd98eb34f667a52bb930647
Made wxList::compatibility_iterator a class in wxUSE_STL == 0 case too instead
of a simple typedef to "Node *" to be able to initialize it with NULL in ctor
which makes the behaviour of the code with and without wxUSE_STL the same.

The price to pay is that the code like

wxList:compatibility_iterator ci;
ci = cond ? list->GetFirst() : wxList::compatibility_iterator();

doesn't compile any more and has to be replaced with (more clear anyhow)

wxList:compatibility_iterator ci;
if ( cond )
ci = list->GetFirst();

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38247 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/list.h
src/html/htmlwin.cpp
src/richtext/richtextbuffer.cpp