From 5479e5f9cdc0053f2ced8a671a5eff0def40b6d9 Mon Sep 17 00:00:00 2001 From: Andy Maloney Date: Sat, 14 Sep 2019 12:17:57 -0400 Subject: [PATCH] Remove extraneous conversion from string -> c_str -> string --- include/yaml-cpp/exceptions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/yaml-cpp/exceptions.h b/include/yaml-cpp/exceptions.h index 25523c9..3b1b01a 100644 --- a/include/yaml-cpp/exceptions.h +++ b/include/yaml-cpp/exceptions.h @@ -160,7 +160,7 @@ class YAML_CPP_API Exception : public std::runtime_error { static const std::string build_what(const Mark& mark, const std::string& msg) { if (mark.is_null()) { - return msg.c_str(); + return msg; } std::stringstream output;