diff options
Diffstat (limited to 'Swiften')
-rw-r--r-- | Swiften/Roster/ContactRosterItem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Roster/ContactRosterItem.cpp b/Swiften/Roster/ContactRosterItem.cpp index bbf3928..37fc6af 100644 --- a/Swiften/Roster/ContactRosterItem.cpp +++ b/Swiften/Roster/ContactRosterItem.cpp @@ -107,7 +107,7 @@ void ContactRosterItem::addGroup(const String& group) { groups_.push_back(group); } void ContactRosterItem::removeGroup(const String& group) { - groups_.erase(std::find(groups_.begin(), groups_.end(), group)); + groups_.erase(std::remove(groups_.begin(), groups_.end(), group), groups_.end()); } } |