diff options
Diffstat (limited to 'Swiften/Serializer/PayloadSerializers/MAMResultSerializer.cpp')
-rw-r--r-- | Swiften/Serializer/PayloadSerializers/MAMResultSerializer.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Swiften/Serializer/PayloadSerializers/MAMResultSerializer.cpp b/Swiften/Serializer/PayloadSerializers/MAMResultSerializer.cpp index 4406e71..4bf25c6 100644 --- a/Swiften/Serializer/PayloadSerializers/MAMResultSerializer.cpp +++ b/Swiften/Serializer/PayloadSerializers/MAMResultSerializer.cpp @@ -23,19 +23,19 @@ MAMResultSerializer::~MAMResultSerializer() { } std::string MAMResultSerializer::serializePayload(boost::shared_ptr<MAMResult> payload) const { - if (!payload) { - return ""; - } + if (!payload) { + return ""; + } - XMLElement element("result", "urn:xmpp:mam:0"); + XMLElement element("result", "urn:xmpp:mam:0"); - element.setAttribute("id", payload->getID()); + element.setAttribute("id", payload->getID()); - if (payload->getQueryID()) { - element.setAttribute("queryid", *payload->getQueryID()); - } + if (payload->getQueryID()) { + element.setAttribute("queryid", *payload->getQueryID()); + } - element.addNode(boost::make_shared<XMLRawTextNode>(ForwardedSerializer(serializers_).serialize(payload->getPayload()))); + element.addNode(boost::make_shared<XMLRawTextNode>(ForwardedSerializer(serializers_).serialize(payload->getPayload()))); - return element.serialize(); + return element.serialize(); } |