Skip trailing space on ends of QFile benchmark names

They were there to make it easier to build the names.
Avoiding them wasn't exactly hard.

Change-Id: I9e353644d81f80d69ecf73fe4fa875948ccbc2c9
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>
Reviewed-by: Andreas Buhr <andreas.buhr@qt.io>
This commit is contained in:
Edward Welbourne 2021-07-05 18:18:52 +02:00
parent cc7e0b5c2c
commit aff8d83512

View File

@ -170,9 +170,12 @@ void tst_qfile::readFile_data(BenchmarkType type, QIODevice::OpenModeFlag t,
QByteArray flagstring;
if (t & QIODevice::Text)
flagstring += "textMode ";
if (b & QIODevice::Unbuffered)
flagstring += "unbuffered ";
flagstring += "textMode";
if (b & QIODevice::Unbuffered) {
if (flagstring.size())
flagstring += ' ';
flagstring += "unbuffered";
}
if (flagstring.isEmpty())
flagstring = "none";