SVN commit 721099 by amantia: Do not add the same entry over and over to the completion list. Fix --enable-final. M +1 -0 ChangeLog M +4 -4 parsers/parser.cpp M +1 -1 parsers/sagroupparser.cpp M +1 -1 parsers/tag.cpp M +2 -2 quanta.kdevelop --- branches/KDE/3.5/kdewebdev/quanta/ChangeLog #721098:721099 @@ -9,6 +9,7 @@ - avoid crashes in various (random) cases - make the parser as fast as it was in 3.5.6 and before - fix help button in the New Project wizard [#145324] + - do not add the same entry over and over to the completion list Version 3.5.7 (Release date: xx-xx-2006; Started 06-02-2006) --- branches/KDE/3.5/kdewebdev/quanta/parsers/parser.cpp #721098:721099 @@ -68,7 +68,7 @@ static const QChar space(' '); extern int NN; -extern QValueList nodes; +extern QMap nodes; Parser::Parser() { @@ -527,8 +527,8 @@ Node::deleteNode(baseNode); baseNode = 0L; kdDebug(24000) << "Node objects after delete = " << NN << " ; list count = " << nodes.count() << endl; - QValueList nList = nodes; -/* for (QValueList::ConstIterator it = nList.constBegin(); it != nList.constEnd(); ++it) +/* QMap nList = nodes; + for (QValueList::ConstIterator it = nList.constBegin(); it != nList.constEnd(); ++it) Node::deleteNode(*it); kdDebug(24000) << "Node objects after cleanup = " << NN << " ; list count = " << nodes.count() << endl; */ } @@ -1580,7 +1580,7 @@ qTag->className = ""; if (groupElement->parentNode) qTag->className = groupElement->parentNode->tag->name; - write->userTagList.insert(s.lower(), qTag); + write->userTagList.replace(s.lower(), qTag); } } } --- branches/KDE/3.5/kdewebdev/quanta/parsers/sagroupparser.cpp #721098:721099 @@ -272,7 +272,7 @@ qTag->type="function"; } if(!isArgument) - m_write->userTagList.insert(s.lower(), qTag); + m_write->userTagList.replace(s.lower(), qTag); } --- branches/KDE/3.5/kdewebdev/quanta/parsers/tag.cpp #721098:721099 @@ -340,7 +340,7 @@ } if (insertNew) { - m_write->userTagList.insert(tagName, newTag); + m_write->userTagList.replace(tagName, newTag); } } } --- branches/KDE/3.5/kdewebdev/quanta/quanta.kdevelop #721098:721099 @@ -259,10 +259,10 @@ - + Quanta speicfic header - + A new empty C++ file.