forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user