Compile fix

Amends: 615b37193b

Change-Id: Ic40e13320a964f20e50ddaf6a776592632361b3a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Jarek Kobus
2021-06-01 10:24:40 +02:00
parent b0d4fc359f
commit ba0c797e6d

View File

@@ -292,12 +292,12 @@ bool QtTestParser::processDocument(QFutureInterface<TestParseResultPtr> futureIn
} }
const CppTools::CppModelManager *modelManager = CppTools::CppModelManager::instance(); const CppTools::CppModelManager *modelManager = CppTools::CppModelManager::instance();
TestCases testCases(testCases(modelManager, fileName)); TestCases testCaseList(testCases(modelManager, fileName));
bool reported = false; bool reported = false;
// we might be in a reparse without the original entry point with the QTest::qExec() // we might be in a reparse without the original entry point with the QTest::qExec()
if (testCases.isEmpty() && !oldTestCases.empty()) if (testCaseList.isEmpty() && !oldTestCases.empty())
testCases.append(oldTestCases); testCaseList.append(oldTestCases);
for (const TestCase &testCase : testCases) { for (const TestCase &testCase : testCaseList) {
if (!testCase.name.isEmpty()) { if (!testCase.name.isEmpty()) {
TestCaseData data; TestCaseData data;
Utils::optional<bool> earlyReturn = fillTestCaseData(testCase.name, doc, data); Utils::optional<bool> earlyReturn = fillTestCaseData(testCase.name, doc, data);