From 1a0f377896cb88b9933b857579113283324d9464 Mon Sep 17 00:00:00 2001 From: lloyd Date: Wed, 9 Sep 2009 15:15:26 +0000 Subject: The first argument of Library_State::set_option was accidentally being passed as a 'const std::string' instead of a const reference. Can't fix in 1.8 since it is ABI breaking. --- src/libstate/libstate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstate/libstate.cpp') diff --git a/src/libstate/libstate.cpp b/src/libstate/libstate.cpp index 3275c6493..20e736868 100644 --- a/src/libstate/libstate.cpp +++ b/src/libstate/libstate.cpp @@ -212,7 +212,7 @@ std::string Library_State::deref_alias(const std::string& key) const /* * Set/Add an option */ -void Library_State::set_option(const std::string key, +void Library_State::set_option(const std::string& key, const std::string& value) { set("conf", key, value); -- cgit v1.2.3