diff options
Diffstat (limited to 'Swiften/Serializer/PayloadSerializers/SubjectSerializer.h')
-rw-r--r-- | Swiften/Serializer/PayloadSerializers/SubjectSerializer.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Swiften/Serializer/PayloadSerializers/SubjectSerializer.h b/Swiften/Serializer/PayloadSerializers/SubjectSerializer.h index 580164b..20f95fd 100644 --- a/Swiften/Serializer/PayloadSerializers/SubjectSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/SubjectSerializer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010-2015 Isode Limited. + * Copyright (c) 2010-2016 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ @@ -7,18 +7,18 @@ #pragma once #include <Swiften/Base/API.h> +#include <Swiften/Elements/Subject.h> #include <Swiften/Serializer/GenericPayloadSerializer.h> #include <Swiften/Serializer/XML/XMLTextNode.h> -#include <Swiften/Elements/Subject.h> namespace Swift { - class SWIFTEN_API SubjectSerializer : public GenericPayloadSerializer<Subject> { - public: - SubjectSerializer() : GenericPayloadSerializer<Subject>() {} + class SWIFTEN_API SubjectSerializer : public GenericPayloadSerializer<Subject> { + public: + SubjectSerializer() : GenericPayloadSerializer<Subject>() {} - virtual std::string serializePayload(boost::shared_ptr<Subject> subject) const { - XMLTextNode textNode(subject->getText()); - return "<subject>" + textNode.serialize() + "</subject>"; - } - }; + virtual std::string serializePayload(std::shared_ptr<Subject> subject) const { + XMLTextNode textNode(subject->getText()); + return "<subject>" + textNode.serialize() + "</subject>"; + } + }; } |