diff options
Diffstat (limited to 'Swiften/Serializer/GenericElementSerializer.h')
-rw-r--r-- | Swiften/Serializer/GenericElementSerializer.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Swiften/Serializer/GenericElementSerializer.h b/Swiften/Serializer/GenericElementSerializer.h index e56f156..620ae7b 100644 --- a/Swiften/Serializer/GenericElementSerializer.h +++ b/Swiften/Serializer/GenericElementSerializer.h @@ -1,4 +1,4 @@ /* - * Copyright (c) 2010 Remko Tronçon + * Copyright (c) 2010-2014 Remko Tronçon * Licensed under the GNU General Public License v3. * See Documentation/Licenses/GPLv3.txt for more information. @@ -15,8 +15,8 @@ namespace Swift { class GenericElementSerializer : public ElementSerializer { public: - virtual SafeByteArray serialize(boost::shared_ptr<Element> element) const = 0; + virtual SafeByteArray serialize(boost::shared_ptr<ToplevelElement> element) const = 0; - virtual bool canSerialize(boost::shared_ptr<Element> element) const { - return boost::dynamic_pointer_cast<T>(element); + virtual bool canSerialize(boost::shared_ptr<ToplevelElement> element) const { + return !!boost::dynamic_pointer_cast<T>(element); } }; |