summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-03-25 13:34:00 +0000
committerMaxime Coste <frrrwww@gmail.com>2015-03-25 13:42:36 +0000
commitbc67a6547d4f7c03341ac66236690093947ded2e (patch)
tree0da72cacbfbf51167ca94f4dcf2a26608b02b85a /src
parentb5fb97f5a9b64f6379a6a3ac37150e0e790140a6 (diff)
Remove unneeded c_str() call
Diffstat (limited to 'src')
-rw-r--r--src/exception.hh2
1 files changed, 1 insertions, 1 deletions
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;