forked from qt-creator/qt-creator
AutoTest: Improve type safety in TestTreeItem
Ensures that the static_cast<>() in framework() always succeeds. Change-Id: I6aff0cf12a565bd6f9791c67979698729d7143e5 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -164,9 +164,9 @@ ITestConfiguration *ITestTreeItem::asConfiguration(TestRunMode mode) const
|
||||
|
||||
/****************************** TestTreeItem ********************************************/
|
||||
|
||||
TestTreeItem::TestTreeItem(ITestBase *testBase, const QString &name,
|
||||
TestTreeItem::TestTreeItem(ITestFramework *testFramework, const QString &name,
|
||||
const QString &filePath, Type type)
|
||||
: ITestTreeItem(testBase, name, filePath, type)
|
||||
: ITestTreeItem(testFramework, name, filePath, type)
|
||||
{
|
||||
switch (type) {
|
||||
case Root:
|
||||
|
||||
Reference in New Issue
Block a user