diff options
Diffstat (limited to 'Swiften/TLS/TLSError.h')
-rw-r--r-- | Swiften/TLS/TLSError.h | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/Swiften/TLS/TLSError.h b/Swiften/TLS/TLSError.h index 27e4b03..ae775e6 100644 --- a/Swiften/TLS/TLSError.h +++ b/Swiften/TLS/TLSError.h @@ -1,32 +1,33 @@ /* - * Copyright (c) 2012-2015 Isode Limited. + * Copyright (c) 2012-2016 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once +#include <memory> + #include <Swiften/Base/API.h> -#include <boost/shared_ptr.hpp> #include <Swiften/Base/Error.h> namespace Swift { - class SWIFTEN_API TLSError : public Error { - public: - typedef boost::shared_ptr<TLSError> ref; + class SWIFTEN_API TLSError : public Error { + public: + typedef std::shared_ptr<TLSError> ref; - enum Type { - UnknownError, - CertificateCardRemoved - }; + enum Type { + UnknownError, + CertificateCardRemoved + }; - TLSError(Type type = UnknownError) : type(type) {} + TLSError(Type type = UnknownError) : type(type) {} - Type getType() const { - return type; - } + Type getType() const { + return type; + } - private: - Type type; - }; + private: + Type type; + }; } |