]> git.saurik.com Git - wxWidgets.git/commitdiff
don't assign m_next twice in wxStringIteratorNode ctor
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 28 Jun 2007 12:52:09 +0000 (12:52 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 28 Jun 2007 12:52:09 +0000 (12:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/string.h

index 04483f3e12f0bac4b0b2559b3b2de27a287ed7df..0462f4f2e851ef67bd1e67fa4876a0582f75e4fe 100644 (file)
@@ -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()