[ekiga] Cosmetic change



commit c423bec017c3c756749c41034e3e2b2ecc1b8586
Author: Julien Puydt <jpuydt gnome org>
Date:   Fri May 1 10:42:33 2009 +0200

    Cosmetic change
    
    Following a suggestion from Robert Ancell, I changed all occurences
    of "foo.begin () != foo.end ()" to "!foo.empty ()".
---
 lib/engine/components/resource-list/rl-heap.cpp |    2 +-
 lib/engine/components/xcap/xcap-core.cpp        |    2 +-
 lib/engine/framework/reflister.h                |    2 +-
 lib/engine/framework/services.cpp               |    2 +-
 src/gui/main.cpp                                |    2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/lib/engine/components/resource-list/rl-heap.cpp b/lib/engine/components/resource-list/rl-heap.cpp
index 8424e94..6068621 100644
--- a/lib/engine/components/resource-list/rl-heap.cpp
+++ b/lib/engine/components/resource-list/rl-heap.cpp
@@ -253,7 +253,7 @@ RL::Heap::refresh ()
   path->set_credentials (username_str, password_str);
   path = path->build_child ("resource-lists");
 
-  while (presentities.begin () != presentities.end ()) {
+  while ( !presentities.empty ()) {
 
     presentities.begin()->first->removed.emit ();
     for (std::list<sigc::connection>::iterator iter2
diff --git a/lib/engine/components/xcap/xcap-core.cpp b/lib/engine/components/xcap/xcap-core.cpp
index 339e60a..7079144 100644
--- a/lib/engine/components/xcap/xcap-core.cpp
+++ b/lib/engine/components/xcap/xcap-core.cpp
@@ -201,7 +201,7 @@ XCAP::CoreImpl::~CoreImpl ()
    * makes the current iterator invalid : it gets pushed to the old sessions
    * list!
    */
-  while (pending_sessions.begin () != pending_sessions.end ())
+  while ( !pending_sessions.empty ())
     soup_session_abort (*pending_sessions.begin ());
 
   /* now all pending sessions have been made old, so we can do that: */
diff --git a/lib/engine/framework/reflister.h b/lib/engine/framework/reflister.h
index 7de3fb8..08bc5f0 100644
--- a/lib/engine/framework/reflister.h
+++ b/lib/engine/framework/reflister.h
@@ -147,7 +147,7 @@ void
 Ekiga::RefLister<ObjectType>::remove_all_objects ()
 {
   /* iterators get invalidated as we go, hence the strange loop */
-  while (objects.begin () != objects.end ())
+  while ( !objects.empty ())
     remove_object (objects.begin ()->first);
 }
 
diff --git a/lib/engine/framework/services.cpp b/lib/engine/framework/services.cpp
index c4423f0..d4d064c 100644
--- a/lib/engine/framework/services.cpp
+++ b/lib/engine/framework/services.cpp
@@ -42,7 +42,7 @@ Ekiga::ServiceCore::~ServiceCore ()
   /* this frees the memory, if we're the only to hold references,
    * and frees the last first -- so there's no problem
    */
-  while (services.begin () != services.end ())
+  while ( !services.empty ())
     services.pop_front ();
 }
 
diff --git a/src/gui/main.cpp b/src/gui/main.cpp
index 4ba90e0..bfbaabf 100644
--- a/src/gui/main.cpp
+++ b/src/gui/main.cpp
@@ -1472,7 +1472,7 @@ place_call_cb (GtkWidget * /*widget*/,
     pos = uri.find ("@");
     if (pos == std::string::npos
 	&& uri.find ("h323:") == std::string::npos
-	&& mw->priv->accounts.begin () != mw->priv->accounts.end ()) {
+	&& !mw->priv->accounts.empty ()) {
 
       std::list<std::string>::iterator it = mw->priv->accounts.begin ();
       uri = uri + "@" + (*it);



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