[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdewebdev/quanta
From: Andras Mantia <amantia () kde ! org>
Date: 2007-10-04 15:38:14
Message-ID: 1191512294.556569.13781.nullmailer () svn ! kde ! org
[Download RAW message or body]
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<Node*> nodes;
+extern QMap<Node*, int> 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<Node*> nList = nodes;
-/* for (QValueList<Node*>::ConstIterator it = nList.constBegin(); it != \
nList.constEnd(); ++it) +/* QMap<Node*, int> nList = nodes;
+ for (QValueList<Node*>::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 @@
</kdevcvs>
<kdevfilecreate>
<filetypes>
- <type icon="" ext="h" create="template" name="C++ header" >
+ <type icon="" ext="h" name="C++ header" create="template" >
<descr>Quanta speicfic header</descr>
</type>
- <type icon="source_cpp" ext="cpp" create="template" name="C++ source" >
+ <type icon="source_cpp" ext="cpp" name="C++ source" create="template" >
<descr>A new empty C++ file.</descr>
</type>
</filetypes>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic