void-packages/srcpkgs/swiften/patches/add-boost-optional.patch
2016-02-28 10:17:06 -06:00

22 lines
1,015 B
Diff

--- Swiften/Serializer/StreamResumeSerializer.cpp
+++ Swiften/Serializer/StreamResumeSerializer.cpp
@@ -22,7 +22,7 @@
XMLElement element("resume", "urn:xmpp:sm:2");
element.setAttribute("previd", e->getResumeID());
if (e->getHandledStanzasCount()) {
- element.setAttribute("h", boost::lexical_cast<std::string>(e->getHandledStanzasCount()));
+ element.setAttribute("h", boost::lexical_cast<std::string>(e->getHandledStanzasCount().get()));
}
return createSafeByteArray(element.serialize());
}
--- Swiften/Serializer/StreamResumedSerializer.cpp
+++ Swiften/Serializer/StreamResumedSerializer.cpp
@@ -22,7 +22,7 @@
XMLElement element("resumed", "urn:xmpp:sm:2");
element.setAttribute("previd", e->getResumeID());
if (e->getHandledStanzasCount()) {
- element.setAttribute("h", boost::lexical_cast<std::string>(e->getHandledStanzasCount()));
+ element.setAttribute("h", boost::lexical_cast<std::string>(e->getHandledStanzasCount().get()));
}
return createSafeByteArray(element.serialize());
}