diff options
Diffstat (limited to 'Swiften/Parser/GenericPayloadTreeParser.h')
| -rw-r--r-- | Swiften/Parser/GenericPayloadTreeParser.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Swiften/Parser/GenericPayloadTreeParser.h b/Swiften/Parser/GenericPayloadTreeParser.h index bdac85f..d90903c 100644 --- a/Swiften/Parser/GenericPayloadTreeParser.h +++ b/Swiften/Parser/GenericPayloadTreeParser.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2011 Isode Limited. | 2 | * Copyright (c) 2011-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -11,6 +11,7 @@ | |||
| 11 | #include <boost/shared_ptr.hpp> | 11 | #include <boost/shared_ptr.hpp> |
| 12 | #include <boost/smart_ptr/make_shared.hpp> | 12 | #include <boost/smart_ptr/make_shared.hpp> |
| 13 | 13 | ||
| 14 | #include <Swiften/Base/API.h> | ||
| 14 | #include <Swiften/Parser/GenericPayloadParser.h> | 15 | #include <Swiften/Parser/GenericPayloadParser.h> |
| 15 | #include <Swiften/Parser/Tree/ParserElement.h> | 16 | #include <Swiften/Parser/Tree/ParserElement.h> |
| 16 | 17 | ||
| @@ -19,7 +20,7 @@ namespace Swift { | |||
| 19 | * Generic parser offering something a bit like a DOM to work with. | 20 | * Generic parser offering something a bit like a DOM to work with. |
| 20 | */ | 21 | */ |
| 21 | template<typename PAYLOAD_TYPE> | 22 | template<typename PAYLOAD_TYPE> |
| 22 | class GenericPayloadTreeParser : public GenericPayloadParser<PAYLOAD_TYPE> { | 23 | class SWIFTEN_API GenericPayloadTreeParser : public GenericPayloadParser<PAYLOAD_TYPE> { |
| 23 | public: | 24 | public: |
| 24 | virtual void handleStartElement(const std::string& element, const std::string& xmlns, const AttributeMap& attributes) { | 25 | virtual void handleStartElement(const std::string& element, const std::string& xmlns, const AttributeMap& attributes) { |
| 25 | if (!root_) { | 26 | if (!root_) { |
Swift