diff options
author | Jarek Kobus <[email protected]> | 2023-01-13 19:01:38 +0100 |
---|---|---|
committer | Jarek Kobus <[email protected]> | 2023-01-20 14:18:32 +0000 |
commit | 01faf0843dd7b1641159b2b0a669ac80a6065558 (patch) | |
tree | 18d7be4d8c6a36ddff3de3fe3e274e5351abb898 /src/plugins/autotest/testresult.h | |
parent | 6eb14c66c718245fb13c06a051c311ca451c3811 (diff) |
TestResult: Devirtualize the class - part 2 of 5
Step 2 - implement findTestItemHook.
Change-Id: Iabc843740343e549f79b02f74f94f5b1b4713af3
Reviewed-by: Christian Stenger <[email protected]>
Diffstat (limited to 'src/plugins/autotest/testresult.h')
-rw-r--r-- | src/plugins/autotest/testresult.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/autotest/testresult.h b/src/plugins/autotest/testresult.h index 62e5d36f098..556802da3c5 100644 --- a/src/plugins/autotest/testresult.h +++ b/src/plugins/autotest/testresult.h @@ -63,7 +63,9 @@ class TestResult; struct ResultHooks { using OutputStringHook = std::function<QString(const TestResult &, bool)>; + using FindTestItemHook = std::function<ITestTreeItem *(const TestResult &)>; OutputStringHook outputString; + FindTestItemHook findTestItem; }; class TestResult @@ -74,7 +76,7 @@ public: virtual ~TestResult() {} const QString outputString(bool selected) const; - virtual const ITestTreeItem *findTestTreeItem() const; + const ITestTreeItem *findTestTreeItem() const; QString id() const { return m_id; } QString name() const { return m_name; } |