summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-10-07 19:40:16 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-10-07 19:40:27 (GMT)
commit88eab3d1d9b722590da3837e3c79839189ea58d2 (patch)
tree05709f368187657c5788ebf2d5206cb47414933d /Swiften/Roster
parente433e70d3dd015db5124ee72085e758635260168 (diff)
downloadswift-88eab3d1d9b722590da3837e3c79839189ea58d2.zip
swift-88eab3d1d9b722590da3837e3c79839189ea58d2.tar.bz2
Code cleanup from recent commits
Diffstat (limited to 'Swiften/Roster')
-rw-r--r--Swiften/Roster/ContactRosterItem.cpp2
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());
}
}