TestResult: Make createIntermediateResultFor() a const method

Change-Id: I60dc08117504611857885668d1ad0d565a0ee020
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Jarek Kobus
2023-01-13 17:42:35 +01:00
parent d03c4f77c9
commit 6eb14c66c7
7 changed files with 10 additions and 12 deletions

View File

@@ -166,7 +166,7 @@ bool TestResult::isIntermediateFor(const TestResult *other) const
return !m_id.isEmpty() && m_id == other->m_id && m_name == other->m_name;
}
TestResult *TestResult::createIntermediateResultFor(const TestResult *other)
TestResult *TestResult::createIntermediateResultFor(const TestResult *other) const
{
QTC_ASSERT(other, return nullptr);
TestResult *intermediate = new TestResult(other->m_id, other->m_name);