summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Parser/GenericPayloadParser.h')
-rw-r--r--Swiften/Parser/GenericPayloadParser.h5
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 {