forked from qt-creator/qt-creator
Various places: performance-for-range-copy
Change-Id: I475990d32a5211d31a77782667a2dfedba134137 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -353,7 +353,7 @@ void CtfTimelineModel::addCounterValue(const json &event, qint64 normalizedTime,
|
||||
if (!event.contains("args")) return;
|
||||
// CTF documentation says all keys of 'args' should be displayed in
|
||||
// one stacked graph, but we will display them separately:
|
||||
for (auto it: event["args"].items()) {
|
||||
for (const auto it : event["args"].items()) {
|
||||
std::string counterName = event.contains("id") ?
|
||||
name + event.value("id", "") : name;
|
||||
const std::string &key = it.key();
|
||||
|
||||
Reference in New Issue
Block a user