From 252870d4a85f942107e7b51f9bdf5fae4e88f728 Mon Sep 17 00:00:00 2001 From: Martijn Otto Date: Fri, 20 May 2016 13:38:56 +0200 Subject: Fix exception catching and properly handle casting functions returning something other than a Php::Value --- include/exception.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/exception.h') 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 -- cgit v1.2.3