[empathy: 10/11] Style: avoid marching off the right margin
- From: Will Thompson <wjt src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy: 10/11] Style: avoid marching off the right margin
- Date: Wed, 1 Jul 2009 22:49:01 +0000 (UTC)
commit fdbb5ae44e2b82a36f7103b63e5c8a2041faea6c
Author: Will Thompson <will thompson collabora co uk>
Date: Thu Jun 18 21:29:31 2009 +0100
Style: avoid marching off the right margin
libempathy/empathy-tp-chat.c | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c
index 8327c4f..6810476 100644
--- a/libempathy/empathy-tp-chat.c
+++ b/libempathy/empathy-tp-chat.c
@@ -886,17 +886,18 @@ chat_lookup_contact (EmpathyTpChat *chat,
for (l = priv->members; l; l = l->next) {
EmpathyContact *c = l->data;
- if (empathy_contact_get_handle (c) == handle) {
- if (remove) {
- /* Caller takes the reference. */
- priv->members = g_list_delete_link (
- priv->members, l);
- } else {
- g_object_ref (c);
- }
+ if (empathy_contact_get_handle (c) != handle) {
+ continue;
+ }
- return c;
+ if (remove) {
+ /* Caller takes the reference. */
+ priv->members = g_list_delete_link (priv->members, l);
+ } else {
+ g_object_ref (c);
}
+
+ return c;
}
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]