forked from qt-creator/qt-creator
AutoTest: Fix invalid static_cast
Test tools only create ITestTreeItems, not TestTreeItems. Change-Id: Idb20844b80e351d4f0a472e4b97b074797ad6f99 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -372,7 +372,7 @@ void TestTreeModel::synchronizeTestTools()
|
||||
QSet<ITestTool *> newlyAdded;
|
||||
QList<ITestTreeItem *> oldFrameworkRoots;
|
||||
for (Utils::TreeItem *oldFrameworkRoot : *invisibleRoot) {
|
||||
auto item = static_cast<TestTreeItem *>(oldFrameworkRoot);
|
||||
auto item = static_cast<ITestTreeItem *>(oldFrameworkRoot);
|
||||
if (item->testBase()->asTestTool())
|
||||
oldFrameworkRoots.append(item);
|
||||
}
|
||||
|
Reference in New Issue
Block a user