AutoTest: performance-for-range-copy

Change-Id: I60e79aec1fe2813867d8ff46cec7d39b848d0020
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Alessandro Portale
2020-06-11 16:53:11 +02:00
parent 4766ad2d18
commit bb89b80097
6 changed files with 7 additions and 7 deletions

View File

@@ -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;