AutoTest: Fix some clazy warnings

Avoids potential nullptr accesses and unneeded allocations.

Change-Id: I8c13ca1dab885fc3e9a05dc7329ff592a7f0fe1a
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2021-01-19 07:50:29 +01:00
parent 0fa391c7d3
commit da07d8f5c3
3 changed files with 5 additions and 3 deletions

View File

@@ -254,6 +254,7 @@ void TestTreeModel::onBuildSystemTestsUpdated()
if (!bs || !bs->project())
return;
QTC_ASSERT(m_checkStateCache, return);
m_checkStateCache->evolve(ITestBase::Tool);
ITestTool *testTool = TestFrameworkManager::testToolForBuildSystemId(bs->project()->id());