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:
Christian Stenger
2017-02-13 10:05:06 +01:00
parent 085ac718d5
commit 23398229e9
26 changed files with 147 additions and 147 deletions

View File

@@ -72,13 +72,13 @@ QString QtTestSettings::metricsTypeToOption(const MetricsType type)
case MetricsType::Walltime:
return QString();
case MetricsType::TickCounter:
return QLatin1String("-tickcounter");
return QString("-tickcounter");
case MetricsType::EventCounter:
return QLatin1String("-eventcounter");
return QString("-eventcounter");
case MetricsType::CallGrind:
return QLatin1String("-callgrind");
return QString("-callgrind");
case MetricsType::Perf:
return QLatin1String("-perf");
return QString("-perf");
default:
return QString();
}