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 /src/libstore/globals.cc | |
parent | 78d979567fa304fa4445fe7403932d9d97183ebd (diff) |
Pass in params by const ref
Signed-off-by: Shea Levy <shea@shealevy.com>
Diffstat (limited to 'src/libstore/globals.cc')
-rw-r--r-- | src/libstore/globals.cc | 2 |
1 files changed, 1 insertions, 1 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('='); |