summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@theqtcompany.com>2015-12-16 13:05:17 +0100
committerEdward Welbourne <edward.welbourne@theqtcompany.com>2016-01-04 15:28:19 +0000
commit6a860f3719800fa58360da3001370532bb246f5f (patch)
tree76d8529ea6e3f1fd1c49b236270c3f0fa3948377
parentf163790f57d9befb1459221781aebb3b6f86e463 (diff)
qdoc: Deduplicate adding a slash in both branches of an if/else.
Change-Id: I5d3f78ad0c6e9a494485a2b5dca237c839d0932a Reviewed-by: Topi Reiniƶ <topi.reinio@theqtcompany.com>
-rw-r--r--src/qdoc/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qdoc/main.cpp b/src/qdoc/main.cpp
index 9634ec88d..8ebebda79 100644
--- a/src/qdoc/main.cpp
+++ b/src/qdoc/main.cpp
@@ -149,10 +149,10 @@ static void loadIndexFiles(Config& config)
for (int j = 0; j < indexDirs.size(); j++) {
QString fileToLookFor = indexDirs[j] + QLatin1Char('/');
if (noOutputSubdirs)
- fileToLookFor += singleOutputSubdir + QLatin1Char('/');
+ fileToLookFor += singleOutputSubdir;
else
- fileToLookFor += dependModules[i] + QLatin1Char('/');
- fileToLookFor += dependModules[i] + QLatin1String(".index");
+ fileToLookFor += dependModules[i];
+ fileToLookFor += QLatin1Char('/') + dependModules[i] + QLatin1String(".index");
if (QFile::exists(fileToLookFor)) {
QFileInfo tempFileInfo(fileToLookFor);
if (!foundIndices.contains(tempFileInfo))