diff options
author | Shea Levy <shea@shealevy.com> | 2014-02-10T11·49-0500 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2014-02-10T11·49-0500 |
commit | 16146031659eae475cd5933b8553b13d725ca436 (patch) | |
tree | 26635d109f1bf459129cde2773a8aca974759332 | |
parent | 78d979567fa304fa4445fe7403932d9d97183ebd (diff) |
Pass in params by const ref
Signed-off-by: Shea Levy <shea@shealevy.com>
-rw-r--r-- | src/libstore/globals.cc | 2 | ||||
-rw-r--r-- | src/libstore/globals.hh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/globals.cc b/src/libstore/globals.cc index c1ffc26fa30a..1d4bcd94f7b8 100644 --- a/src/libstore/globals.cc +++ b/src/libstore/globals.cc @@ -215,7 +215,7 @@ string Settings::pack() } -void Settings::unpack(string pack) { +void Settings::unpack(const string &pack) { Strings lines = tokenizeString<Strings>(pack, "\n"); foreach (Strings::iterator, i, lines) { string::size_type eq = i->find('='); diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh index 5e7cfda9a124..13772c65cbac 100644 --- a/src/libstore/globals.hh +++ b/src/libstore/globals.hh @@ -25,7 +25,7 @@ struct Settings { string pack(); - void unpack(string pack); + void unpack(const string &pack); SettingsMap getOverrides(); |