diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-10-07 19:40:16 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-10-07 19:40:27 (GMT) |
commit | 88eab3d1d9b722590da3837e3c79839189ea58d2 (patch) | |
tree | 05709f368187657c5788ebf2d5206cb47414933d /Swiften | |
parent | e433e70d3dd015db5124ee72085e758635260168 (diff) | |
download | swift-contrib-88eab3d1d9b722590da3837e3c79839189ea58d2.zip swift-contrib-88eab3d1d9b722590da3837e3c79839189ea58d2.tar.bz2 |
Code cleanup from recent commits
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()); } } |