diff options
Diffstat (limited to 'Swiften/Serializer/PayloadSerializers/SubjectSerializer.h')
-rw-r--r-- | Swiften/Serializer/PayloadSerializers/SubjectSerializer.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Swiften/Serializer/PayloadSerializers/SubjectSerializer.h b/Swiften/Serializer/PayloadSerializers/SubjectSerializer.h index 7e113c5..9f90ce0 100644 --- a/Swiften/Serializer/PayloadSerializers/SubjectSerializer.h +++ b/Swiften/Serializer/PayloadSerializers/SubjectSerializer.h @@ -12,13 +12,13 @@ #include <Swiften/Serializer/XML/XMLTextNode.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(boost::shared_ptr<Subject> subject) const { + XMLTextNode textNode(subject->getText()); + return "<subject>" + textNode.serialize() + "</subject>"; + } + }; } |