Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
struct QBenchmarkContext
{
- // None of the strings below are assumed to contain commas (see toString() below)
+ // None of the strings below are assumed to contain commas
QString slotName;
QString tag; // from _data() function
-
- int checkpointIndex;
-
- QString toString() const
- {
- QString s = QString::fromLatin1("%1,%2,%3").arg(slotName).arg(tag).arg(checkpointIndex);
- return s;
- }
-
- QBenchmarkContext() : checkpointIndex(-1) {}
};
class QBenchmarkResult
QBenchmarkTestMethodData benchmarkData;
QBenchmarkTestMethodData::current = &benchmarkData;
- QBenchmarkGlobalData::current->context.slotName = QLatin1String(slotName);
+ QBenchmarkGlobalData::current->context.slotName = QString::fromLatin1(slotName);
char member[512];
QTestTable table;