summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3/node.cpp
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2010-03-15 10:10:22 (GMT)
committerMartin Smith <msmith@trolltech.com>2010-03-15 10:10:22 (GMT)
commit7d3ca146a5cd124357001257528c64c904677861 (patch)
tree5ae4bc2a946e3562f0195d6927cc31d8d7e3e724 /tools/qdoc3/node.cpp
parentccf34d2a9f2d3aa2341de7babab5188b359861a1 (diff)
downloadQt-7d3ca146a5cd124357001257528c64c904677861.zip
Qt-7d3ca146a5cd124357001257528c64c904677861.tar.gz
Qt-7d3ca146a5cd124357001257528c64c904677861.tar.bz2
qdoc: ifdefed out all the debug code.
I think the crash that occurs when running qdoc over multiple qdocconf files is fixed.
Diffstat (limited to 'tools/qdoc3/node.cpp')
-rw-r--r--tools/qdoc3/node.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/qdoc3/node.cpp b/tools/qdoc3/node.cpp
index 1d43edd..d60ff73 100644
--- a/tools/qdoc3/node.cpp
+++ b/tools/qdoc3/node.cpp
@@ -1297,7 +1297,9 @@ QmlClassNode::QmlClassNode(InnerNode *parent,
*/
QmlClassNode::~QmlClassNode()
{
+#ifdef DEBUG_MULTIPLE QDOCCONF_FILES
qDebug() << "Deleting QmlClassNode:" << name();
+#endif
}
/*!
@@ -1332,7 +1334,9 @@ QString QmlClassNode::fileBase() const
void QmlClassNode::addInheritedBy(const QString& base, Node* sub)
{
inheritedBy.insert(base,sub);
+#ifdef DEBUG_MULTIPLE QDOCCONF_FILES
qDebug() << "QmlClassNode::addInheritedBy(): insert" << base << sub->name() << inheritedBy.size();
+#endif
}
/*!
@@ -1343,8 +1347,10 @@ void QmlClassNode::subclasses(const QString& base, NodeList& subs)
subs.clear();
if (inheritedBy.count(base) > 0) {
subs = inheritedBy.values(base);
+#ifdef DEBUG_MULTIPLE QDOCCONF_FILES
qDebug() << "QmlClassNode::subclasses():" << inheritedBy.count(base) << base
<< "subs:" << subs.size() << "total size:" << inheritedBy.size();
+#endif
}
}