From bc67a6547d4f7c03341ac66236690093947ded2e Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 25 Mar 2015 13:34:00 +0000 Subject: [PATCH] Remove unneeded c_str() call --- src/exception.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exception.hh b/src/exception.hh index fd29017c..43ff4e68 100644 --- a/src/exception.hh +++ b/src/exception.hh @@ -17,7 +17,7 @@ struct runtime_error : exception runtime_error(String what) : m_what(std::move(what)) {} - StringView what() const override { return m_what.c_str(); } + StringView what() const override { return m_what; } private: String m_what;