From: Arvin Schnell Date: Mon, 13 Jul 2020 10:04:34 +0000 (+0200) Subject: - tiny code optimization X-Git-Tag: v0.8.11~1^2~2 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=da03434bc30998da04f0f0b965ad1e6cccc1f036;p=thirdparty%2Fsnapper.git - tiny code optimization --- diff --git a/client/systemd-helper.cc b/client/systemd-helper.cc index 3638168f..f83f9996 100644 --- a/client/systemd-helper.cc +++ b/client/systemd-helper.cc @@ -70,7 +70,7 @@ timeline(ProxySnappers* snappers, const map& userdata) bool ok = true; map configs = snappers->getConfigs(); - for (const map::value_type value : configs) + for (const map::value_type& value : configs) { const map& raw = value.second.getAllValues(); @@ -104,7 +104,7 @@ cleanup(ProxySnappers* snappers) bool ok = true; map configs = snappers->getConfigs(); - for (const map::value_type value : configs) + for (const map::value_type& value : configs) { const map& raw = value.second.getAllValues();