summaryrefslogtreecommitdiff
path: root/src/plugins/autotest/quick/quicktestparser.cpp
diff options
context:
space:
mode:
authorBernhard Beschow <shentey@gmail.com>2021-01-25 16:31:16 +0100
committerBernhard Beschow <shentey@gmail.com>2021-02-04 11:31:56 +0000
commited6083b521bc607181a4fd6fde389c6a63b00509 (patch)
tree19b844842465a0b02511ccaab2089680cc535797 /src/plugins/autotest/quick/quicktestparser.cpp
parent3d075d30d0772aaaa2fa152f8ad01dd85f7cef89 (diff)
downloadqt-creator-ed6083b521bc607181a4fd6fde389c6a63b00509.tar.gz
AutoTest: Improve type safety in TestParseResult
By having TestParseResults take ITestFramework rather than ITestBase as parameter, some base->asFramework() casts can be avoided today which could possibly fail in the future. Moreover, it allows TestTreeItem to take ITestFramework rather than ITestBase as parameter which improves type safety further. This shall be done in a separate commit though. Change-Id: I66594415d68c3423076a0830ecd11080d3b6c186 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/autotest/quick/quicktestparser.cpp')
-rw-r--r--src/plugins/autotest/quick/quicktestparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/autotest/quick/quicktestparser.cpp b/src/plugins/autotest/quick/quicktestparser.cpp
index 828fa77ad6..aafe7e07f3 100644
--- a/src/plugins/autotest/quick/quicktestparser.cpp
+++ b/src/plugins/autotest/quick/quicktestparser.cpp
@@ -51,7 +51,7 @@ TestTreeItem *QuickTestParseResult::createTestTreeItem() const
if (itemType == TestTreeItem::Root || itemType == TestTreeItem::TestDataTag)
return nullptr;
- QuickTestTreeItem *item = new QuickTestTreeItem(base, name, fileName, itemType);
+ QuickTestTreeItem *item = new QuickTestTreeItem(framework, name, fileName, itemType);
item->setProFile(proFile);
item->setLine(line);
item->setColumn(column);