aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstate/libstate.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-09-09 15:15:26 +0000
committerlloyd <[email protected]>2009-09-09 15:15:26 +0000
commit1a0f377896cb88b9933b857579113283324d9464 (patch)
treeaae0bdb099dde3975b4899ec4e75114b2f3d055e /src/libstate/libstate.cpp
parent166e979eebe6e3f136df4deba626b584e1d735ae (diff)
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.
Diffstat (limited to 'src/libstate/libstate.cpp')
-rw-r--r--src/libstate/libstate.cpp2
1 files changed, 1 insertions, 1 deletions
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);