aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest/quick
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2020-06-11 16:53:11 +0200
committerAlessandro Portale <alessandro.portale@qt.io>2020-06-12 07:01:10 +0000
commitbb89b800977f68dc67341db81107c329a3ace7d7 (patch)
treea1347344944f41ea4710f3fea459de613bf61d5c /src/plugins/autotest/quick
parent4766ad2d186bce7997269392e10b37ef73fd7c1e (diff)
AutoTest: performance-for-range-copy
Change-Id: I60e79aec1fe2813867d8ff46cec7d39b848d0020 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/autotest/quick')
-rw-r--r--src/plugins/autotest/quick/quicktestparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/autotest/quick/quicktestparser.cpp b/src/plugins/autotest/quick/quicktestparser.cpp
index 5ee01e1c902..1c481a28577 100644
--- a/src/plugins/autotest/quick/quicktestparser.cpp
+++ b/src/plugins/autotest/quick/quicktestparser.cpp
@@ -207,7 +207,7 @@ static bool checkQmlDocumentForQuickTestCode(QFutureInterface<TestParseResultPtr
parseResult->column = testCase.m_locationAndType.m_column;
}
- for (auto function : testCase.m_functions) {
+ for (const auto &function : testCase.m_functions) {
QuickTestParseResult *funcResult = new QuickTestParseResult(framework);
funcResult->name = function.m_functionName;
funcResult->displayName = function.m_functionName;