cid#318956 AUTO_CAUSES_COPY

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ifcd6984042b50999a24f65479bc81428f710d38a
pull/6690/head
Caolán McNamara 2023-06-14 09:21:51 +01:00 committed by Miklos Vajna
parent 1b8e81497c
commit c617e14d67
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ struct Stats {
// how much from each command ?
std::vector<std::string> sortKeys;
size_t total = 0;
for(auto it : map)
for(const auto& it : map)
{
sortKeys.push_back(it.first);
total += it.second.size;