From 98fed68347ed59f5f9a55230cc6ec21311f3ef07 Mon Sep 17 00:00:00 2001 From: Martin Smith Date: Tue, 3 Apr 2012 10:17:16 +0200 Subject: 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 --- src/tools/qdoc/cppcodeparser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tools/qdoc/cppcodeparser.cpp') 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) { -- cgit v1.2.3