mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-11 23:05:34 +08:00
Use structured bindings (C++17 feature)
This commit is contained in:
@@ -1871,10 +1871,10 @@ namespace BlackCore
|
||||
}
|
||||
|
||||
if (callStatistics.isEmpty()) { return QString(); }
|
||||
for (const auto pair : makePairsRange(as_const(callStatistics)))
|
||||
for (const auto [key, value] : makePairsRange(as_const(callStatistics)))
|
||||
{
|
||||
// key is pair.first, value is pair.second
|
||||
transformed.push_back({ pair.second, pair.first });
|
||||
transformed.push_back({ value, key });
|
||||
}
|
||||
|
||||
// sorted by value
|
||||
|
||||
Reference in New Issue
Block a user