From 191b7237bfd5c2e74c0a25a17390dbb67073cf38 Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Tue, 25 Aug 2015 12:34:12 +0200 Subject: [PATCH] qdoc: Use lowercase names for modules read from index files The module names are used as keys in the map that defines the forest of module trees. A physical module name (lowercase) is used as the primary tree name, but modules read from index were using a name written to the index file (project name, typically CamelCase) as-is. This caused issues for resolving link commands that have a module name in the square bracket parameters. To ensure that such links work, convert module names read from index to lowercase, too. Change-Id: I698e01fd1df888e4a78c06a76ad72b5eb1a70892 Reviewed-by: Martin Smith --- src/tools/qdoc/qdocdatabase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/qdoc/qdocdatabase.cpp b/src/tools/qdoc/qdocdatabase.cpp index 97f1929fb4..5ca8e36ef9 100644 --- a/src/tools/qdoc/qdocdatabase.cpp +++ b/src/tools/qdoc/qdocdatabase.cpp @@ -276,7 +276,7 @@ const QVector& QDocForest::indexSearchOrder() NamespaceNode* QDocForest::newIndexTree(const QString& module) { primaryTree_ = new Tree(module, qdb_); - forest_.insert(module, primaryTree_); + forest_.insert(module.toLower(), primaryTree_); return primaryTree_->root(); }