forked from qt-creator/qt-creator
AutoTest: Modernize code a bit
Change-Id: Ie56f6e5cb8a4f1962bd8df5e57214911ae609921 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -42,12 +42,12 @@ const QString GTestResult::outputString(bool selected) const
|
||||
case Result::Fail:
|
||||
output = m_testSetName;
|
||||
if (selected && !desc.isEmpty())
|
||||
output.append(QLatin1Char('\n')).append(desc);
|
||||
output.append('\n').append(desc);
|
||||
break;
|
||||
default:
|
||||
output = desc;
|
||||
if (!selected)
|
||||
output = output.split(QLatin1Char('\n')).first();
|
||||
output = output.split('\n').first();
|
||||
}
|
||||
return output;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user