pkgsrc/chat/swift/patches/patch-Swiften_Serializer_StreamResumeSerializer.cpp

15 lines
735 B
C++

$NetBSD: patch-Swiften_Serializer_StreamResumeSerializer.cpp,v 1.1 2014/09/19 07:05:24 wiz Exp $
Fix build with boost-1.56.0. From upstream git.
--- Swiften/Serializer/StreamResumeSerializer.cpp.orig 2012-12-22 12:23:59.000000000 +0000
+++ Swiften/Serializer/StreamResumeSerializer.cpp
@@ -22,7 +22,7 @@ SafeByteArray StreamResumeSerializer::se
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());
}