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:
Bernhard Beschow
2021-01-29 19:32:39 +01:00
parent ed6083b521
commit 0e0c2ca91c
8 changed files with 14 additions and 14 deletions

View File

@@ -33,11 +33,11 @@ namespace Internal {
class QuickTestTreeItem : public TestTreeItem
{
public:
explicit QuickTestTreeItem(ITestBase *testBase,
explicit QuickTestTreeItem(ITestFramework *testFramework,
const QString &name = QString(),
const QString &filePath = QString(),
Type type = Root)
: TestTreeItem(testBase, name, filePath, type)
: TestTreeItem(testFramework, name, filePath, type)
{}
TestTreeItem *copyWithoutChildren() override;