diff options
Diffstat (limited to 'Swiften/Serializer/GenericStanzaSerializer.h')
-rw-r--r-- | Swiften/Serializer/GenericStanzaSerializer.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Swiften/Serializer/GenericStanzaSerializer.h b/Swiften/Serializer/GenericStanzaSerializer.h index 32fcbe9..badd55c 100644 --- a/Swiften/Serializer/GenericStanzaSerializer.h +++ b/Swiften/Serializer/GenericStanzaSerializer.h @@ -15,19 +15,19 @@ namespace Swift { public: GenericStanzaSerializer(const std::string& tag, PayloadSerializerCollection* payloadSerializers, const boost::optional<std::string>& explicitNS = boost::optional<std::string>()) : StanzaSerializer(tag, payloadSerializers, explicitNS) {} - virtual bool canSerialize(boost::shared_ptr<ToplevelElement> element) const { + virtual bool canSerialize(std::shared_ptr<ToplevelElement> element) const { return dynamic_cast<STANZA_TYPE*>(element.get()) != nullptr; } virtual void setStanzaSpecificAttributes( - boost::shared_ptr<ToplevelElement> stanza, + std::shared_ptr<ToplevelElement> stanza, XMLElement& element) const { setStanzaSpecificAttributesGeneric( - boost::dynamic_pointer_cast<STANZA_TYPE>(stanza), element); + std::dynamic_pointer_cast<STANZA_TYPE>(stanza), element); } virtual void setStanzaSpecificAttributesGeneric( - boost::shared_ptr<STANZA_TYPE>, + std::shared_ptr<STANZA_TYPE>, XMLElement&) const = 0; }; } |