diff options
Diffstat (limited to 'Swiften/Roster/XMPPRosterImpl.cpp')
| -rw-r--r-- | Swiften/Roster/XMPPRosterImpl.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Swiften/Roster/XMPPRosterImpl.cpp b/Swiften/Roster/XMPPRosterImpl.cpp index d438f69..96b9949 100644 --- a/Swiften/Roster/XMPPRosterImpl.cpp +++ b/Swiften/Roster/XMPPRosterImpl.cpp | |||
| @@ -1,19 +1,24 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #include <Swiften/Roster/XMPPRosterImpl.h> | 7 | #include <Swiften/Roster/XMPPRosterImpl.h> |
| 8 | |||
| 8 | #include <Swiften/Base/foreach.h> | 9 | #include <Swiften/Base/foreach.h> |
| 9 | 10 | ||
| 10 | namespace Swift { | 11 | namespace Swift { |
| 11 | 12 | ||
| 12 | XMPPRosterImpl::XMPPRosterImpl() { | 13 | XMPPRosterImpl::XMPPRosterImpl() { |
| 13 | } | 14 | } |
| 14 | 15 | ||
| 16 | XMPPRosterImpl::~XMPPRosterImpl() { | ||
| 17 | |||
| 18 | } | ||
| 19 | |||
| 15 | void XMPPRosterImpl::addContact(const JID& jid, const std::string& name, const std::vector<std::string>& groups, RosterItemPayload::Subscription subscription) { | 20 | void XMPPRosterImpl::addContact(const JID& jid, const std::string& name, const std::vector<std::string>& groups, RosterItemPayload::Subscription subscription) { |
| 16 | JID bareJID(jid.toBare()); | 21 | JID bareJID(jid.toBare()); |
| 17 | std::map<JID, XMPPRosterItem>::iterator i = entries_.find(bareJID); | 22 | std::map<JID, XMPPRosterItem>::iterator i = entries_.find(bareJID); |
| 18 | if (i != entries_.end()) { | 23 | if (i != entries_.end()) { |
| 19 | std::string oldName = i->second.getName(); | 24 | std::string oldName = i->second.getName(); |
Swift