aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libstore/globals.cc2
-rw-r--r--src/libstore/globals.hh2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/globals.cc b/src/libstore/globals.cc
index c1ffc26fa..1d4bcd94f 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 5e7cfda9a..13772c65c 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();