summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Parser/GenericStanzaParser.h')
-rw-r--r--Swiften/Parser/GenericStanzaParser.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/Swiften/Parser/GenericStanzaParser.h b/Swiften/Parser/GenericStanzaParser.h
index 7d16a0c..2686f2f 100644
--- a/Swiften/Parser/GenericStanzaParser.h
+++ b/Swiften/Parser/GenericStanzaParser.h
@@ -1,13 +1,12 @@
/*
- * Copyright (c) 2010-2015 Isode Limited.
+ * Copyright (c) 2010-2016 Isode Limited.
* All rights reserved.
* See the COPYING file for more information.
*/
#pragma once
-#include <boost/shared_ptr.hpp>
-#include <boost/smart_ptr/make_shared.hpp>
+#include <memory>
#include <Swiften/Base/API.h>
#include <Swiften/Parser/StanzaParser.h>
@@ -21,18 +20,18 @@ namespace Swift {
public:
GenericStanzaParser(PayloadParserFactoryCollection* collection) :
StanzaParser(collection) {
- stanza_ = boost::make_shared<STANZA_TYPE>();
+ stanza_ = std::make_shared<STANZA_TYPE>();
}
- virtual boost::shared_ptr<ToplevelElement> getElement() const {
+ virtual std::shared_ptr<ToplevelElement> getElement() const {
return stanza_;
}
- virtual boost::shared_ptr<STANZA_TYPE> getStanzaGeneric() const {
+ virtual std::shared_ptr<STANZA_TYPE> getStanzaGeneric() const {
return stanza_;
}
private:
- boost::shared_ptr<STANZA_TYPE> stanza_;
+ std::shared_ptr<STANZA_TYPE> stanza_;
};
}