summaryrefslogtreecommitdiffstats
path: root/raul/Exception.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'raul/Exception.hpp')
-rw-r--r--raul/Exception.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/raul/Exception.hpp b/raul/Exception.hpp
index a1c5dfd..da4a0e0 100644
--- a/raul/Exception.hpp
+++ b/raul/Exception.hpp
@@ -26,10 +26,10 @@ namespace Raul {
/** An exception (unexpected error). */
class Exception : public std::exception {
public:
- const char* what() const noexcept { return _what.c_str(); }
+ const char* what() const noexcept override { return _what.c_str(); }
protected:
- explicit Exception(const std::string& what) : _what(what) {}
+ explicit Exception(std::string what) : _what(std::move(what)) {}
private:
const std::string _what;