summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Roster')
-rw-r--r--Swiften/Roster/GetRosterRequest.h6
-rw-r--r--Swiften/Roster/SetRosterRequest.h6
2 files changed, 8 insertions, 4 deletions
diff --git a/Swiften/Roster/GetRosterRequest.h b/Swiften/Roster/GetRosterRequest.h
index 271b2fb..00cf77f 100644
--- a/Swiften/Roster/GetRosterRequest.h
+++ b/Swiften/Roster/GetRosterRequest.h
@@ -8,11 +8,13 @@
#include "Swiften/Queries/GenericRequest.h"
#include "Swiften/Elements/RosterPayload.h"
-#include "Swiften/Base/Shared.h"
+
namespace Swift {
- class GetRosterRequest : public GenericRequest<RosterPayload>, public Shared<GetRosterRequest> {
+ class GetRosterRequest : public GenericRequest<RosterPayload> {
public:
+ typedef boost::shared_ptr<GetRosterRequest> ref;
+
static ref create(IQRouter* router) {
return ref(new GetRosterRequest(router));
}
diff --git a/Swiften/Roster/SetRosterRequest.h b/Swiften/Roster/SetRosterRequest.h
index 7b1bf8c..b1ecd1f 100644
--- a/Swiften/Roster/SetRosterRequest.h
+++ b/Swiften/Roster/SetRosterRequest.h
@@ -11,11 +11,13 @@
#include "Swiften/Queries/Request.h"
#include "Swiften/Elements/RosterPayload.h"
-#include "Swiften/Base/Shared.h"
+
namespace Swift {
- class SetRosterRequest : public Request, public Shared<SetRosterRequest> {
+ class SetRosterRequest : public Request {
public:
+ typedef boost::shared_ptr<SetRosterRequest> ref;
+
static ref create(RosterPayload::ref payload, IQRouter* router) {
return ref(new SetRosterRequest(payload, router));
}