From 0c6bb92f3f59b6b86f3b7b56224677e79b2e6900 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 16 Sep 2018 22:11:37 +0200 Subject: Lint with clang-tidy --- raul/Exception.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'raul/Exception.hpp') 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; -- cgit v1.2.1