summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-04-28 15:42:00 (GMT)
committerBrad King <brad.king@kitware.com>2015-04-28 17:15:00 (GMT)
commit2b211eb8bac6ec65652b1bf4bbbcc196d28773ba (patch)
treee26adc21c7faa447db7b46559d48aa8466ebc902 /src
parentf0c00cb8bd3c5e6c38c6ee47370c15630e7446eb (diff)
downloadCastXML-2b211eb8bac6ec65652b1bf4bbbcc196d28773ba.zip
CastXML-2b211eb8bac6ec65652b1bf4bbbcc196d28773ba.tar.gz
CastXML-2b211eb8bac6ec65652b1bf4bbbcc196d28773ba.tar.bz2
Output: Drop unused index previously consumed by CvQualifiedType elements
Refactoring in the parent commit removed the need to consume a node index when creating a CvQualifiedType element. That commit preserved the behavior artificially in order to minimize differences in expected test output. Now remove this behavior and update the expected test output to account for the now-contiguous indexes.
Diffstat (limited to 'src')
-rw-r--r--src/Output.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/Output.cxx b/src/Output.cxx
index 431f57e..424d523 100644
--- a/src/Output.cxx
+++ b/src/Output.cxx
@@ -648,8 +648,6 @@ ASTVisitor::DumpId ASTVisitor::AddTypeDumpNode(DumpType dt, bool complete,
ASTVisitor::DumpId ASTVisitor::AddQualDumpNode(DumpId id) {
DumpNode* dn = this->GetDumpNode(id);
if (!dn->Index) {
- // Consume a node index for temporary compatibility.
- ++this->NodeCount;
dn->Index = id;
// Always treat CvQualifiedType nodes as complete.
dn->Complete = true;