diff options
Diffstat (limited to 'Swiften/Disco')
-rw-r--r-- | Swiften/Disco/CapsFileStorage.cpp | 2 | ||||
-rw-r--r-- | Swiften/Disco/GetDiscoInfoRequest.h | 4 | ||||
-rw-r--r-- | Swiften/Disco/GetDiscoItemsRequest.h | 4 |
3 files changed, 7 insertions, 3 deletions
diff --git a/Swiften/Disco/CapsFileStorage.cpp b/Swiften/Disco/CapsFileStorage.cpp index c5326a7..107cf28 100644 --- a/Swiften/Disco/CapsFileStorage.cpp +++ b/Swiften/Disco/CapsFileStorage.cpp @@ -30,7 +30,7 @@ DiscoInfo::ref CapsFileStorage::getDiscoInfo(const String& hash) const { DiscoInfoParser parser; PayloadParserTester tester(&parser); tester.parse(String(data.getData(), data.getSize())); - return DiscoInfo::cast(parser.getPayload()); + return boost::dynamic_pointer_cast<DiscoInfo>(parser.getPayload()); } else { return DiscoInfo::ref(); diff --git a/Swiften/Disco/GetDiscoInfoRequest.h b/Swiften/Disco/GetDiscoInfoRequest.h index d1ed279..2298b5c 100644 --- a/Swiften/Disco/GetDiscoInfoRequest.h +++ b/Swiften/Disco/GetDiscoInfoRequest.h @@ -10,8 +10,10 @@ #include "Swiften/Elements/DiscoInfo.h" namespace Swift { - class GetDiscoInfoRequest : public GenericRequest<DiscoInfo>, public Shared<GetDiscoInfoRequest> { + class GetDiscoInfoRequest : public GenericRequest<DiscoInfo> { public: + typedef boost::shared_ptr<GetDiscoInfoRequest> ref; + static ref create(const JID& jid, IQRouter* router) { return ref(new GetDiscoInfoRequest(jid, router)); } diff --git a/Swiften/Disco/GetDiscoItemsRequest.h b/Swiften/Disco/GetDiscoItemsRequest.h index ed565ac..0a94402 100644 --- a/Swiften/Disco/GetDiscoItemsRequest.h +++ b/Swiften/Disco/GetDiscoItemsRequest.h @@ -10,8 +10,10 @@ #include "Swiften/Elements/DiscoItems.h" namespace Swift { - class GetDiscoItemsRequest : public GenericRequest<DiscoItems>, public Shared<GetDiscoItemsRequest> { + class GetDiscoItemsRequest : public GenericRequest<DiscoItems> { public: + typedef boost::shared_ptr<GetDiscoItemsRequest> ref; + static ref create(const JID& jid, IQRouter* router) { return ref(new GetDiscoItemsRequest(jid, router)); } |