diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-12-05 13:40:40 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-12-05 13:40:40 (GMT) |
commit | 6ba6af2934095f54f51d17c1d9ed8216b6249aa3 (patch) | |
tree | 7bc2236f1f6feb6f821dee8ca0fcb395751740e0 /Swiften/Parser/GenericPayloadParser.h | |
parent | 5c30503d671d54c3e2950be7b4f17a1ba5843475 (diff) | |
download | swift-contrib-6ba6af2934095f54f51d17c1d9ed8216b6249aa3.zip swift-contrib-6ba6af2934095f54f51d17c1d9ed8216b6249aa3.tar.bz2 |
Use make_shared in parsers.
Diffstat (limited to 'Swiften/Parser/GenericPayloadParser.h')
-rw-r--r-- | Swiften/Parser/GenericPayloadParser.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Swiften/Parser/GenericPayloadParser.h b/Swiften/Parser/GenericPayloadParser.h index a1720e8..3514541 100644 --- a/Swiften/Parser/GenericPayloadParser.h +++ b/Swiften/Parser/GenericPayloadParser.h @@ -7,8 +7,9 @@ #pragma once #include <boost/shared_ptr.hpp> +#include <boost/smart_ptr/make_shared.hpp> -#include "Swiften/Parser/PayloadParser.h" +#include <Swiften/Parser/PayloadParser.h> namespace Swift { class String; @@ -24,7 +25,7 @@ namespace Swift { class GenericPayloadParser : public PayloadParser { public: GenericPayloadParser() : PayloadParser() { - payload_ = boost::shared_ptr<PAYLOAD_TYPE>(new PAYLOAD_TYPE()); + payload_ = boost::make_shared<PAYLOAD_TYPE>(); } virtual boost::shared_ptr<Payload> getPayload() const { |