From 7473d7a97d02be9aeefa271269184485ddf460a4 Mon Sep 17 00:00:00 2001 From: Travis Reitter Date: Wed, 7 Jul 2010 19:22:15 -0700 Subject: Use explicit boolean expressions for if-conditionals, according to Telepathy style. --- src/empathy-main-window.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c index f6fe0c9b4..58ace96d1 100644 --- a/src/empathy-main-window.c +++ b/src/empathy-main-window.c @@ -189,7 +189,7 @@ main_window_flash_foreach (GtkTreeModel *model, contact = empathy_contact_from_folks_individual (individual); if (contact != data->event->contact) { - if (contact) { + if (contact != NULL) { g_object_unref (contact); } return FALSE; @@ -221,7 +221,7 @@ main_window_flash_foreach (GtkTreeModel *model, } g_object_unref (individual); - if (contact) + if (contact != NULL) g_object_unref (contact); return FALSE; @@ -355,7 +355,7 @@ main_window_row_activated_cb (EmpathyContactListView *view, g_object_unref (contact); OUT: - if (individual) + if (individual != NULL) g_object_unref (individual); } -- cgit v1.2.3