diff options
Diffstat (limited to 'Swiften/VCards/GetVCardRequest.h')
-rw-r--r-- | Swiften/VCards/GetVCardRequest.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Swiften/VCards/GetVCardRequest.h b/Swiften/VCards/GetVCardRequest.h index 47c302d..1b575c0 100644 --- a/Swiften/VCards/GetVCardRequest.h +++ b/Swiften/VCards/GetVCardRequest.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010-2015 Isode Limited. + * Copyright (c) 2010-2016 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ @@ -7,20 +7,20 @@ #pragma once #include <Swiften/Base/API.h> -#include <Swiften/Queries/GenericRequest.h> #include <Swiften/Elements/VCard.h> +#include <Swiften/Queries/GenericRequest.h> namespace Swift { - class SWIFTEN_API GetVCardRequest : public GenericRequest<VCard> { - public: - typedef boost::shared_ptr<GetVCardRequest> ref; + class SWIFTEN_API GetVCardRequest : public GenericRequest<VCard> { + public: + typedef std::shared_ptr<GetVCardRequest> ref; - static ref create(const JID& jid, IQRouter* router) { - return ref(new GetVCardRequest(jid, router)); - } + static ref create(const JID& jid, IQRouter* router) { + return ref(new GetVCardRequest(jid, router)); + } - private: - GetVCardRequest(const JID& jid, IQRouter* router) : GenericRequest<VCard>(IQ::Get, jid, boost::shared_ptr<Payload>(new VCard()), router) { - } - }; + private: + GetVCardRequest(const JID& jid, IQRouter* router) : GenericRequest<VCard>(IQ::Get, jid, std::make_shared<VCard>(), router) { + } + }; } |