mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-24 07:55:35 +08:00
refs #937 Resolved clazy warnings: unnecessary memory allocation.
This commit is contained in:
@@ -408,7 +408,7 @@ namespace BlackMisc
|
||||
if (pinsOnly)
|
||||
{
|
||||
auto pins = fromJson(json.value("pins").toArray());
|
||||
for (const auto &key : m_timestamps.keys())
|
||||
for (const auto &key : m_timestamps.keys()) // clazy:exclude=container-anti-pattern,range-loop
|
||||
{
|
||||
if (! pins.contains(key)) { m_timestamps.remove(key); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user