diff options
author | Jarek Kobus <[email protected]> | 2023-01-14 13:28:10 +0100 |
---|---|---|
committer | Jarek Kobus <[email protected]> | 2023-01-25 09:35:28 +0000 |
commit | f9090dab0cfa835a0cc116a554d47ce011580634 (patch) | |
tree | 31dfde1eea312f5e9635d8280a8de28b6d767313 /src/plugins/autotest/testresult.h | |
parent | 2b99ba1db767ae6950a86e538f28a546de6587ef (diff) |
TestResult: Devirtualize the class - part 5 of 5
Step 5 - implement createResultHook.
Change-Id: Ibe81fb93c8c1c12d1af458d0f9707d02864febd8
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 23ad1ddd248..a136d356e18 100644 --- a/src/plugins/autotest/testresult.h +++ b/src/plugins/autotest/testresult.h @@ -66,11 +66,13 @@ struct ResultHooks using FindTestItemHook = std::function<ITestTreeItem *(const TestResult &)>; using DirectParentHook = std::function<bool(const TestResult &, const TestResult &, bool *)>; using IntermediateHook = std::function<bool(const TestResult &, const TestResult &)>; + using CreateResultHook = std::function<TestResult(const TestResult &)>; QVariant extraData; OutputStringHook outputString; FindTestItemHook findTestItem; DirectParentHook directParent; IntermediateHook intermediate = {}; + CreateResultHook createResult = {}; }; class TestResult @@ -103,7 +105,7 @@ public: bool isDirectParentOf(const TestResult *other, bool *needsIntermediate) const; bool isIntermediateFor(const TestResult *other) const; - virtual TestResult *createIntermediateResultFor(const TestResult *other) const; + TestResult *createIntermediateResultFor(const TestResult *other) const; private: QString m_id; |