summaryrefslogtreecommitdiff
path: root/include/exception.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/exception.h')
-rw-r--r--include/exception.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/exception.h b/include/exception.h
index 55601c2..235529f 100644
--- a/include/exception.h
+++ b/include/exception.h
@@ -41,12 +41,12 @@ public:
* Constructor
* @param &string
*/
- Exception(const std::string &message, int code = 0) : std::exception(), _message(message), _code(code) {}
+ Exception(std::string message, int code = 0) : std::exception(), _message(std::move(message)), _code(code) {}
/**
* Destructor
*/
- virtual ~Exception() throw() {}
+ virtual ~Exception() = default;
/**
* Overridden what method