diff options
Diffstat (limited to 'Swiften/Elements/ContainerPayload.h')
-rw-r--r-- | Swiften/Elements/ContainerPayload.h | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/Swiften/Elements/ContainerPayload.h b/Swiften/Elements/ContainerPayload.h index 0ca073c..3da04b7 100644 --- a/Swiften/Elements/ContainerPayload.h +++ b/Swiften/Elements/ContainerPayload.h @@ -1,33 +1,34 @@ /* - * Copyright (c) 2013 Isode Limited. + * Copyright (c) 2013-2016 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once -#include <Swiften/Base/Override.h> +#include <memory> +#include <vector> + #include <Swiften/Base/API.h> +#include <Swiften/Base/Override.h> #include <Swiften/Elements/Payload.h> -#include <boost/shared_ptr.hpp> -#include <vector> namespace Swift { - template<typename T> - class SWIFTEN_API ContainerPayload : public Payload { - public: - ContainerPayload() {} - ContainerPayload(boost::shared_ptr<T> payload) : payload(payload) {} + template<typename T> + class SWIFTEN_API ContainerPayload : public Payload { + public: + ContainerPayload() {} + ContainerPayload(std::shared_ptr<T> payload) : payload(payload) {} + + void setPayload(std::shared_ptr<T> payload) { + this->payload = payload; + } - void setPayload(boost::shared_ptr<T> payload) { - this->payload = payload; - } - - boost::shared_ptr<T> getPayload() const { - return payload; - } + std::shared_ptr<T> getPayload() const { + return payload; + } - private: - boost::shared_ptr<T> payload; - }; + private: + std::shared_ptr<T> payload; + }; } |