diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2020-06-16 16:30:55 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2020-06-16 14:46:52 +0000 |
commit | 95657030f691794f108e2779f5579340e42030c8 (patch) | |
tree | 2f704ace8b733e009618587915b11e568083dc1f /tests/auto/shared/perfparsertestclient.cpp | |
parent | a944d9b8f9180b06b9b1c1b81ad0586707d13afe (diff) |
Fix deprecation warnings
Change-Id: I22539a0d5c435649bc1056bc0406583742a5cb23
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto/shared/perfparsertestclient.cpp')
-rw-r--r-- | tests/auto/shared/perfparsertestclient.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/shared/perfparsertestclient.cpp b/tests/auto/shared/perfparsertestclient.cpp index 82eed31..366f154 100644 --- a/tests/auto/shared/perfparsertestclient.cpp +++ b/tests/auto/shared/perfparsertestclient.cpp @@ -202,7 +202,7 @@ void PerfParserTestClient::convertToText(QTextStream &out) const out << '\t' << string(attribute.name) << ": "; if (attribute.type == 2) { const auto format = tracePointFormat(static_cast<qint32>(attribute.config)); - out << string(format.system) << ' ' << string(format.name) << ' ' << hex << format.flags << dec << '\n'; + out << string(format.system) << ' ' << string(format.name) << ' ' << Qt::hex << format.flags << Qt::dec << '\n'; for (auto it = sample.tracePointData.begin(); it != sample.tracePointData.end(); ++it) { out << "\t\t" << string(it.key()) << '=' << it.value().toString() << '\n'; } @@ -213,7 +213,7 @@ void PerfParserTestClient::convertToText(QTextStream &out) const out << '\n'; auto printFrame = [&out, this](qint32 locationId) -> qint32 { const auto location = this->location(locationId); - out << '\t' << hex << location.address << dec; + out << '\t' << Qt::hex << location.address << Qt::dec; const auto symbol = this->symbol(locationId); if (location.file != -1) out << '\t' << string(location.file) << ':' << location.line << ':' << location.column; |