Remove unneeded c_str() call
This commit is contained in:
parent
b5fb97f5a9
commit
bc67a6547d
|
@ -17,7 +17,7 @@ struct runtime_error : exception
|
||||||
runtime_error(String what)
|
runtime_error(String what)
|
||||||
: m_what(std::move(what)) {}
|
: m_what(std::move(what)) {}
|
||||||
|
|
||||||
StringView what() const override { return m_what.c_str(); }
|
StringView what() const override { return m_what; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
String m_what;
|
String m_what;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user