aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@theqtcompany.com>2015-03-03 15:01:09 +0100
committerDavid Schulz <david.schulz@theqtcompany.com>2015-03-03 16:03:50 +0200
commit36a8265549b2cbd6dd9f5b1730137428521595f7 (patch)
tree2a2082d5841ab5a79d7ded52f2ff8d71147a37b5
parent535f1eec182b54011e2b32a625ba048e8e99ec98 (diff)
Move variable declaration into using blockat-v3.4.0-beta1
Change-Id: Ibf5f5fd825b7beb2bb6b607c8b822b4dfeebfda5 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
-rw-r--r--plugins/autotest/testcodeparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/autotest/testcodeparser.cpp b/plugins/autotest/testcodeparser.cpp
index 6b2ff8d4a8..bc28fa0720 100644
--- a/plugins/autotest/testcodeparser.cpp
+++ b/plugins/autotest/testcodeparser.cpp
@@ -672,11 +672,11 @@ void TestCodeParser::removeTestsIfNecessary(const QString &fileName)
emit testItemsRemoved(file, TestTreeModel::QuickTest);
}
// unnamed Quick Tests must be handled separately
- QSet<QString> filePaths;
if (fileName.endsWith(QLatin1String(".qml"))) {
removeUnnamedQuickTestsByName(fileName);
emit unnamedQuickTestsRemoved(fileName);
} else {
+ QSet<QString> filePaths;
m_model->qmlFilesForMainFile(fileName, &filePaths);
foreach (const QString &file, filePaths) {
removeUnnamedQuickTestsByName(file);