diff options
author | David Robillard <d@drobilla.net> | 2018-09-16 22:11:37 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-09-16 22:11:37 +0200 |
commit | 0c6bb92f3f59b6b86f3b7b56224677e79b2e6900 (patch) | |
tree | 40e3173eec8b493f22152372cc00782f2a076f92 /raul/Exception.hpp | |
parent | 07396e8d23bb8724c5960b57aca33e08a97f4e52 (diff) | |
download | raul-0c6bb92f3f59b6b86f3b7b56224677e79b2e6900.tar.gz raul-0c6bb92f3f59b6b86f3b7b56224677e79b2e6900.tar.bz2 raul-0c6bb92f3f59b6b86f3b7b56224677e79b2e6900.zip |
Lint with clang-tidy
Diffstat (limited to 'raul/Exception.hpp')
-rw-r--r-- | raul/Exception.hpp | 4 |
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; |