diff --git a/spectrum/src/frontends/xmpp/rosterresponder.cpp b/spectrum/src/frontends/xmpp/rosterresponder.cpp index b0b75fe0a1923798c49a79c0d36bf328c229cb78..b0e8b35a84ac0ad52292a83cfe07d56ef4908d67 100644 --- a/spectrum/src/frontends/xmpp/rosterresponder.cpp +++ b/spectrum/src/frontends/xmpp/rosterresponder.cpp @@ -34,7 +34,6 @@ #include "transport/Frontend.h" using namespace Swift; -using namespace boost; namespace Transport { @@ -48,12 +47,12 @@ RosterResponder::RosterResponder(Swift::IQRouter *router, UserManager *userManag RosterResponder::~RosterResponder() { } -bool RosterResponder::handleGetRequest(const Swift::JID& from, const Swift::JID& to, const std::string& id, boost::shared_ptr payload) { +bool RosterResponder::handleGetRequest(const Swift::JID& from, const Swift::JID& to, const std::string& id, SWIFTEN_SHRPTR_NAMESPACE::shared_ptr payload) { // Get means we're in server mode and user wants to fetch his roster. // For now we send empty reponse, but TODO: Get buddies from database and send proper stored roster. User *user = m_userManager->getUser(from.toBare().toString()); if (!user) { - sendResponse(from, id, boost::shared_ptr(new RosterPayload())); + sendResponse(from, id, SWIFTEN_SHRPTR_NAMESPACE::shared_ptr(new RosterPayload())); LOG4CXX_WARN(logger, from.toBare().toString() << ": User is not logged in"); return true; } @@ -62,8 +61,8 @@ bool RosterResponder::handleGetRequest(const Swift::JID& from, const Swift::JID& return true; } -bool RosterResponder::handleSetRequest(const Swift::JID& from, const Swift::JID& to, const std::string& id, boost::shared_ptr payload) { - sendResponse(from, id, boost::shared_ptr(new RosterPayload())); +bool RosterResponder::handleSetRequest(const Swift::JID& from, const Swift::JID& to, const std::string& id, SWIFTEN_SHRPTR_NAMESPACE::shared_ptr payload) { + sendResponse(from, id, SWIFTEN_SHRPTR_NAMESPACE::shared_ptr(new RosterPayload())); User *user = m_userManager->getUser(from.toBare().toString()); if (!user) {