diff options
Diffstat (limited to 'Swiften/Entity/Entity.cpp')
-rw-r--r-- | Swiften/Entity/Entity.cpp | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/Swiften/Entity/Entity.cpp b/Swiften/Entity/Entity.cpp index 77d0cc6..0875fb1 100644 --- a/Swiften/Entity/Entity.cpp +++ b/Swiften/Entity/Entity.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2016 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ @@ -9,42 +9,41 @@ #include <Swiften/Parser/PayloadParsers/FullPayloadParserFactoryCollection.h> #include <Swiften/Serializer/PayloadSerializers/FullPayloadSerializerCollection.h> - namespace Swift { Entity::Entity() { - payloadParserFactories = new FullPayloadParserFactoryCollection(); - payloadSerializers = new FullPayloadSerializerCollection(); + payloadParserFactories = new FullPayloadParserFactoryCollection(); + payloadSerializers = new FullPayloadSerializerCollection(); } Entity::~Entity() { - delete payloadSerializers; - delete payloadParserFactories; + delete payloadSerializers; + delete payloadParserFactories; } void Entity::addPayloadParserFactory(PayloadParserFactory* payloadParserFactory) { - payloadParserFactories->addFactory(payloadParserFactory); + payloadParserFactories->addFactory(payloadParserFactory); } void Entity::removePayloadParserFactory(PayloadParserFactory* payloadParserFactory) { - payloadParserFactories->removeFactory(payloadParserFactory); + payloadParserFactories->removeFactory(payloadParserFactory); } void Entity::addPayloadSerializer(PayloadSerializer* payloadSerializer) { - payloadSerializers->addSerializer(payloadSerializer); + payloadSerializers->addSerializer(payloadSerializer); } void Entity::removePayloadSerializer(PayloadSerializer* payloadSerializer) { - payloadSerializers->removeSerializer(payloadSerializer); + payloadSerializers->removeSerializer(payloadSerializer); } PayloadParserFactoryCollection* Entity::getPayloadParserFactories() { - return payloadParserFactories; + return payloadParserFactories; } PayloadSerializerCollection* Entity::getPayloadSerializers() { - return payloadSerializers; + return payloadSerializers; } } |