TestResult: Devirtualize the class - part 2 of 5

Step 2 - implement findTestItemHook.

Change-Id: Iabc843740343e549f79b02f74f94f5b1b4713af3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Jarek Kobus
2023-01-13 19:01:38 +01:00
parent 6eb14c66c7
commit 01faf0843d
11 changed files with 272 additions and 261 deletions

View File

@@ -27,6 +27,8 @@ const QString TestResult::outputString(bool selected) const
const ITestTreeItem *TestResult::findTestTreeItem() const
{
if (m_hooks.findTestItem)
return m_hooks.findTestItem(*this);
return nullptr;
}