QTest: microoptimisation

Change-Id: Ifd053870c270a2c0a0a33c8201e40aaa9a9f9041
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
bb10
Marc Mutz 2013-09-11 23:42:48 +02:00 committed by The Qt Project
parent 6611f04879
commit e327ba191d
1 changed files with 1 additions and 1 deletions

View File

@ -1629,7 +1629,7 @@ QBenchmarkResult qMedian(const QList<QBenchmarkResult> &container)
return QBenchmarkResult();
if (count == 1)
return container.at(0);
return container.front();
const int middle = count / 2;