summaryrefslogtreecommitdiffstats
path: root/src/tools/qdoc/cppcodeparser.cpp
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@nokia.com>2012-04-03 10:17:16 +0200
committerQt by Nokia <qt-info@nokia.com>2012-04-03 12:45:46 +0200
commit98fed68347ed59f5f9a55230cc6ec21311f3ef07 (patch)
tree9c0c9273a54638d377c0d1c53a0b266cbe58ffd0 /src/tools/qdoc/cppcodeparser.cpp
parente09fc38a3624f372c9f0b7339b460468961e918b (diff)
qdoc: findNodeRecursive() was called with a null start node
This occurred in several places. They have all been corrected to start at the tree root, when the start node passed is null. Task nr: QTBUG-25146 Change-Id: I5d75db0626451d30e8be8de5605036ba168f2a14 Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Diffstat (limited to 'src/tools/qdoc/cppcodeparser.cpp')
-rw-r--r--src/tools/qdoc/cppcodeparser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/qdoc/cppcodeparser.cpp b/src/tools/qdoc/cppcodeparser.cpp
index 7dfb32bde04..b08c6f901c9 100644
--- a/src/tools/qdoc/cppcodeparser.cpp
+++ b/src/tools/qdoc/cppcodeparser.cpp
@@ -1067,9 +1067,9 @@ void CppCodeParser::processOtherMetaCommand(const Doc& doc,
If it wasn't a file, it should be either a class or a namespace.
*/
QStringList newPath = arg.split("::");
- n = tree_->findClassNode(QStringList(newPath));
+ n = tree_->findClassNode(newPath);
if (!n)
- n = tree_->findNamespaceNode(QStringList(newPath));
+ n = tree_->findNamespaceNode(newPath);
}
if (!n) {