[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/khtml/xml
From:       Zack Rusin <zack () kde ! org>
Date:       2004-02-13 19:11:02
Message-ID: 20040213191102.EF76C9938 () office ! kde ! org
[Download RAW message or body]

CVS commit by zrusin: 

Reducing the diff between the trees by two lines (and postponing construction 
of those is a good idea anyway)


  M +3 -4      xml_tokenizer.cpp   1.51


--- kdelibs/khtml/xml/xml_tokenizer.cpp  #1.50:1.51
@@ -405,10 +405,9 @@ void XMLTokenizer::finish()
             static_cast<NodeImpl*>(m_doc->document())->removeChild(m_doc->document()->firstChild(),exceptioncode);
  
-        QString xmlCode = m_source.data();
-        QTextIStream stream(&xmlCode);
         QString line, errorLocPtr;
         if ( m_handler.errorLine ) {
-            unsigned long lineno;
-            for (lineno = 1; lineno < m_handler.errorLine; lineno++)
+            QString xmlCode = m_source.data();
+            QTextIStream stream(&xmlCode);
+            for (unsigned long lineno = 0; lineno < m_handler.errorLine-1; lineno++)
                 stream.readLine();
             line = stream.readLine();


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic