forked from qt-creator/qt-creator
Compile fix
Amends: 615b37193b
Change-Id: Ic40e13320a964f20e50ddaf6a776592632361b3a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user