summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-10-25 18:44:36 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-10-25 18:45:36 (GMT)
commitf77eeb87104a4ea0fd8e43399da14dc5f1cd97c3 (patch)
tree484a1755ccb69421de3ed9b7b9c731870f2de56a /Swiften/Roster
parentbd80c3b9054d91b3cbc309400f4db195c708115d (diff)
downloadswift-contrib-f77eeb87104a4ea0fd8e43399da14dc5f1cd97c3.zip
swift-contrib-f77eeb87104a4ea0fd8e43399da14dc5f1cd97c3.tar.bz2
Remove the use of Shared<>.
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));
}