summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Elements/ErrorPayload.h')
-rw-r--r--Swiften/Elements/ErrorPayload.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/Swiften/Elements/ErrorPayload.h b/Swiften/Elements/ErrorPayload.h
index 800ff22..0269e4d 100644
--- a/Swiften/Elements/ErrorPayload.h
+++ b/Swiften/Elements/ErrorPayload.h
@@ -6,17 +6,16 @@
#pragma once
+#include <memory>
#include <string>
-#include <boost/shared_ptr.hpp>
-
#include <Swiften/Base/API.h>
#include <Swiften/Elements/Payload.h>
namespace Swift {
class SWIFTEN_API ErrorPayload : public Payload {
public:
- typedef boost::shared_ptr<ErrorPayload> ref;
+ typedef std::shared_ptr<ErrorPayload> ref;
enum Type { Cancel, Continue, Modify, Auth, Wait };
@@ -71,11 +70,11 @@ namespace Swift {
return text_;
}
- void setPayload(boost::shared_ptr<Payload> payload) {
+ void setPayload(std::shared_ptr<Payload> payload) {
payload_ = payload;
}
- boost::shared_ptr<Payload> getPayload() const {
+ std::shared_ptr<Payload> getPayload() const {
return payload_;
}
@@ -83,6 +82,6 @@ namespace Swift {
Type type_;
Condition condition_;
std::string text_;
- boost::shared_ptr<Payload> payload_;
+ std::shared_ptr<Payload> payload_;
};
}