void-packages/srcpkgs/swiften/patches/add-boost-optional.patch

23 lines
1015 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());
}