From 42fc0309be7252439d2e1bf40722a042c4e81213 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 28 Jun 2007 12:52:09 +0000 Subject: [PATCH] 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 --- include/wx/string.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/wx/string.h b/include/wx/string.h index 04483f3e12..0462f4f2e8 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -3126,7 +3126,7 @@ void wxStringIteratorNode::DoSet(const wxString *str, wxStringImpl::const_iterator *citer, wxStringImpl::iterator *iter) { - m_next = m_prev = NULL; + m_prev = NULL; m_iter = iter; m_citer = citer; m_str = str; @@ -3137,6 +3137,10 @@ void wxStringIteratorNode::DoSet(const wxString *str, if ( m_next ) m_next->m_prev = this; } + else + { + m_next = NULL; + } } void wxStringIteratorNode::clear() -- 2.45.2