don't assign m_next twice in wxStringIteratorNode ctor

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2007-06-28 12:52:09 +00:00
parent 39c20230ba
commit 42fc0309be

View File

@@ -3126,7 +3126,7 @@ void wxStringIteratorNode::DoSet(const wxString *str,
wxStringImpl::const_iterator *citer, wxStringImpl::const_iterator *citer,
wxStringImpl::iterator *iter) wxStringImpl::iterator *iter)
{ {
m_next = m_prev = NULL; m_prev = NULL;
m_iter = iter; m_iter = iter;
m_citer = citer; m_citer = citer;
m_str = str; m_str = str;
@@ -3137,6 +3137,10 @@ void wxStringIteratorNode::DoSet(const wxString *str,
if ( m_next ) if ( m_next )
m_next->m_prev = this; m_next->m_prev = this;
} }
else
{
m_next = NULL;
}
} }
void wxStringIteratorNode::clear() void wxStringIteratorNode::clear()