From 58417e78e561d0cbfa46f720a411630575c5eb79 Mon Sep 17 00:00:00 2001 From: timoore Date: Wed, 15 Jul 2009 23:08:22 +0000 Subject: [PATCH] Add a method to setStringValue that takes a std::string argument --- simgear/props/props.hxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/simgear/props/props.hxx b/simgear/props/props.hxx index 9bef6844..44a56147 100644 --- a/simgear/props/props.hxx +++ b/simgear/props/props.hxx @@ -1419,12 +1419,17 @@ public: */ bool setStringValue (const char * relative_path, const char * value); + bool setStringValue(const char * relative_path, const std::string& value) + { return setStringValue(relative_path, value.c_str()); } /** * Set another node's value as a string. */ bool setStringValue (const std::string& relative_path, const char * value) { return setStringValue(relative_path.c_str(), value); } + bool setStringValue (const std::string& relative_path, + const std::string& value) + { return setStringValue(relative_path.c_str(), value.c_str()); } /** * Set another node's value with no specified type. -- 2.39.5