QTest: microoptimisation
Change-Id: Ifd053870c270a2c0a0a33c8201e40aaa9a9f9041 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
parent
6611f04879
commit
e327ba191d
@ -1629,7 +1629,7 @@ QBenchmarkResult qMedian(const QList<QBenchmarkResult> &container)
|
|||||||
return QBenchmarkResult();
|
return QBenchmarkResult();
|
||||||
|
|
||||||
if (count == 1)
|
if (count == 1)
|
||||||
return container.at(0);
|
return container.front();
|
||||||
|
|
||||||
const int middle = count / 2;
|
const int middle = count / 2;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user