diff options
Diffstat (limited to 'Sluift')
-rw-r--r-- | Sluift/Lua/Exception.cpp | 2 | ||||
-rw-r--r-- | Sluift/Lua/Exception.h | 6 | ||||
-rw-r--r-- | Sluift/Response.h | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/Sluift/Lua/Exception.cpp b/Sluift/Lua/Exception.cpp index d80b9fb..889c931 100644 --- a/Sluift/Lua/Exception.cpp +++ b/Sluift/Lua/Exception.cpp @@ -11,5 +11,5 @@ using namespace Swift::Lua; Exception::Exception(const std::string& what) : std::runtime_error(what) { } -Exception::~Exception() throw() { +Exception::~Exception() SWIFTEN_NOEXCEPT { } diff --git a/Sluift/Lua/Exception.h b/Sluift/Lua/Exception.h index 6d00d01..a68b925 100644 --- a/Sluift/Lua/Exception.h +++ b/Sluift/Lua/Exception.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013 Remko Tronçon + * Copyright (c) 2013-2014 Remko Tronçon * Licensed under the GNU General Public License v3. * See Documentation/Licenses/GPLv3.txt for more information. */ @@ -7,13 +7,15 @@ #pragma once #include <stdexcept> +#include <Swiften/Base/API.h> namespace Swift { namespace Lua { class Exception : public std::runtime_error { public: Exception(const std::string& what); - virtual ~Exception() throw(); + SWIFTEN_DEFAULT_COPY_CONSTRUCTOR(Exception) + virtual ~Exception() SWIFTEN_NOEXCEPT; }; } } diff --git a/Sluift/Response.h b/Sluift/Response.h index 1cd059a..b007897 100644 --- a/Sluift/Response.h +++ b/Sluift/Response.h @@ -8,6 +8,7 @@ #include <Swiften/Elements/Payload.h> #include <Swiften/Elements/ErrorPayload.h> +#include <Swiften/Base/API.h> struct lua_State; @@ -15,6 +16,7 @@ namespace Swift { namespace Sluift { struct Response { Response(boost::shared_ptr<Payload> result, boost::shared_ptr<ErrorPayload> error) : result(result), error(error) {} + SWIFTEN_DEFAULT_COPY_CONSTRUCTOR(Response) ~Response(); static Response withResult(boost::shared_ptr<Payload> response) { |