]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- tiny code optimization
authorArvin Schnell <aschnell@suse.de>
Mon, 13 Jul 2020 10:04:34 +0000 (12:04 +0200)
committerArvin Schnell <aschnell@suse.de>
Mon, 13 Jul 2020 10:04:34 +0000 (12:04 +0200)
client/systemd-helper.cc

index 3638168f57edbfc59bade170ee8742fb26c24b37..f83f9996561e49625fefb479d878abbdae0435b0 100644 (file)
@@ -70,7 +70,7 @@ timeline(ProxySnappers* snappers, const map<string, string>& userdata)
     bool ok = true;
 
     map<string, ProxyConfig> configs = snappers->getConfigs();
-    for (const map<string, ProxyConfig>::value_type value : configs)
+    for (const map<string, ProxyConfig>::value_type& value : configs)
     {
        const map<string, string>& raw = value.second.getAllValues();
 
@@ -104,7 +104,7 @@ cleanup(ProxySnappers* snappers)
     bool ok = true;
 
     map<string, ProxyConfig> configs = snappers->getConfigs();
-    for (const map<string, ProxyConfig>::value_type value : configs)
+    for (const map<string, ProxyConfig>::value_type& value : configs)
     {
        const map<string, string>& raw = value.second.getAllValues();