Commit b218787b authored by Andy Maloney's avatar Andy Maloney Committed by Jesse Beder
Browse files

Remove extraneous conversion from string -> c_str -> string (#739)

parent db0bda70
...@@ -160,7 +160,7 @@ class YAML_CPP_API Exception : public std::runtime_error { ...@@ -160,7 +160,7 @@ class YAML_CPP_API Exception : public std::runtime_error {
static const std::string build_what(const Mark& mark, static const std::string build_what(const Mark& mark,
const std::string& msg) { const std::string& msg) {
if (mark.is_null()) { if (mark.is_null()) {
return msg.c_str(); return msg;
} }
std::stringstream output; std::stringstream output;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment