[ekiga/gnome-2-26] I love STL iterators (fixing bug #578752)
- From: Eugen Dedu <ededu src gnome org>
- To: svn-commits-list gnome org
- Subject: [ekiga/gnome-2-26] I love STL iterators (fixing bug #578752)
- Date: Mon, 27 Apr 2009 12:34:27 -0400 (EDT)
commit 62e9cb13dcd4b70d1d7cd9b0d3b1ada80cf7f68c
Author: Julien Puydt <jpuydt src gnome org>
Date: Wed Apr 15 13:51:17 2009 +0000
I love STL iterators (fixing bug #578752)
svn path=/trunk/; revision=7859
---
lib/engine/components/local-roster/local-heap.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/lib/engine/components/local-roster/local-heap.cpp b/lib/engine/components/local-roster/local-heap.cpp
index 3dcf077..63984bd 100644
--- a/lib/engine/components/local-roster/local-heap.cpp
+++ b/lib/engine/components/local-roster/local-heap.cpp
@@ -166,8 +166,10 @@ struct existing_groups_helper
bool test (Local::PresentityPtr presentity)
{
- groups.insert (presentity->get_groups ().begin (),
- presentity->get_groups ().end ());
+ const std::set<std::string> presentity_groups = presentity->get_groups ();
+
+ groups.insert (presentity_groups.begin (),
+ presentity_groups.end ());
return true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]