summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Serializer/GenericPayloadSerializer.h')
-rw-r--r--Swiften/Serializer/GenericPayloadSerializer.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/Swiften/Serializer/GenericPayloadSerializer.h b/Swiften/Serializer/GenericPayloadSerializer.h
index b415256..13603e5 100644
--- a/Swiften/Serializer/GenericPayloadSerializer.h
+++ b/Swiften/Serializer/GenericPayloadSerializer.h
@@ -8,8 +8,7 @@
#include <boost/shared_ptr.hpp>
-#include "Swiften/Serializer/PayloadSerializer.h"
-#include "Swiften/Elements/Body.h"
+#include <Swiften/Serializer/PayloadSerializer.h>
namespace Swift {
template<typename PAYLOAD_TYPE>
@@ -20,7 +19,7 @@ namespace Swift {
}
virtual bool canSerialize(boost::shared_ptr<Payload> element) const {
- return dynamic_cast<PAYLOAD_TYPE*>(element.get());
+ return boost::dynamic_pointer_cast<PAYLOAD_TYPE>(element);
}
virtual String serializePayload(boost::shared_ptr<PAYLOAD_TYPE>) const = 0;