forked from qt-creator/qt-creator
AutoTest: Modernize code
* remove unnecessary QLatin1String where possible * foreach * nullptr * bad naming of static members Change-Id: If0f7c6839be4d2efbfef6f7f0775d2034775bd90 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -140,8 +140,8 @@ void GTestOutputReader::processOutput(const QByteArray &outputLine)
|
||||
m_description.chop(1);
|
||||
testResult->setDescription(m_description);
|
||||
|
||||
foreach (const QString &output, m_description.split('\n')) {
|
||||
QRegExp *match = 0;
|
||||
for (const QString &output : m_description.split('\n')) {
|
||||
QRegExp *match = nullptr;
|
||||
if (failureLocation.exactMatch(output))
|
||||
match = &failureLocation;
|
||||
else if (errorLocation.exactMatch(output))
|
||||
|
||||
Reference in New Issue
Block a user