diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2021-02-06 21:40:07 +0100 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2021-02-06 21:40:07 +0100 |
commit | c2892f82e1d4d5ed046f4ee9cf1955bb97f27021 (patch) | |
tree | 112c036a46a2180e6ef29a425f81fe07aa394e5c /src/identity.cpp | |
parent | d4dc316b05257fb0dd05e8589471e5b968e8663b (diff) |
Avoid unnecessary copying in range loops
Diffstat (limited to 'src/identity.cpp')
-rw-r--r-- | src/identity.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/identity.cpp b/src/identity.cpp index fe4cf53..374a872 100644 --- a/src/identity.cpp +++ b/src/identity.cpp @@ -177,7 +177,7 @@ Ref IdentityData::store(const Storage & st) const { vector<Record::Item> items; - for (const auto p : prev) + for (const auto & p : prev) items.emplace_back("SPREV", p.ref()); if (name) items.emplace_back("name", *name); |