summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Serializer/StanzaAckSerializer.h')
-rw-r--r--Swiften/Serializer/StanzaAckSerializer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Serializer/StanzaAckSerializer.h b/Swiften/Serializer/StanzaAckSerializer.h
index eb957b9..d29fbde 100644
--- a/Swiften/Serializer/StanzaAckSerializer.h
+++ b/Swiften/Serializer/StanzaAckSerializer.h
@@ -20,7 +20,7 @@ namespace Swift {
}
virtual String serialize(boost::shared_ptr<Element> element) const {
- StanzaAck::ref stanzaAck = StanzaAck::cast(element);
+ StanzaAck::ref stanzaAck(boost::dynamic_pointer_cast<StanzaAck>(element));
assert(stanzaAck->isValid());
XMLElement result("a", "urn:xmpp:sm:2");
result.setAttribute("h", String(boost::lexical_cast<std::string>(stanzaAck->getHandledStanzasCount())));