ekiga r7829 - trunk/lib/engine/components/ldap



Author: jpuydt
Date: Sun Mar 29 08:38:14 2009
New Revision: 7829
URL: http://svn.gnome.org/viewvc/ekiga?rev=7829&view=rev

Log:
Use the remove_all_objects method to flush a refreshing LDAP book (no more iterator use)

Modified:
   trunk/lib/engine/components/ldap/ldap-book.cpp

Modified: trunk/lib/engine/components/ldap/ldap-book.cpp
==============================================================================
--- trunk/lib/engine/components/ldap/ldap-book.cpp	(original)
+++ trunk/lib/engine/components/ldap/ldap-book.cpp	Sun Mar 29 08:38:14 2009
@@ -437,12 +437,7 @@
 OPENLDAP::Book::refresh ()
 {
   /* we flush */
-  iterator iter = begin ();
-  while (iter != end ()) {
-
-    remove_contact (*iter);
-    iter = begin ();
-  }
+  remove_all_objects ();
 
   if (ldap_context == NULL)
     refresh_start ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]