[empathy: 37/53] Use "foo != NULL" instead of "foo".



commit 74f912543dcd2d78aee3e6ab15bf60a29e08074a
Author: Jonny Lamb <jonny lamb collabora co uk>
Date:   Thu Apr 23 11:52:16 2009 +0100

    Use "foo != NULL" instead of "foo".
    
    Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>
---
 src/empathy-debug-dialog.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/empathy-debug-dialog.c b/src/empathy-debug-dialog.c
index 15864b7..37c8825 100644
--- a/src/empathy-debug-dialog.c
+++ b/src/empathy-debug-dialog.c
@@ -280,13 +280,13 @@ debug_dialog_cm_chooser_changed_cb (GtkComboBox *cm_chooser,
     debug_dialog_set_enabled (debug_dialog, FALSE);
 
   /* Disconnect from previous NewDebugMessage signal */
-  if (priv->signal_connection)
+  if (priv->signal_connection != NULL)
     {
       tp_proxy_signal_connection_disconnect (priv->signal_connection);
       priv->signal_connection = NULL;
     }
 
-  if (priv->proxy)
+  if (priv->proxy != NULL)
     g_object_unref (priv->proxy);
 
   priv->proxy = TP_PROXY (connection);
@@ -869,22 +869,22 @@ debug_dialog_dispose (GObject *object)
 
   priv->dispose_run = TRUE;
 
-  if (priv->parent)
+  if (priv->parent != NULL)
     g_object_unref (priv->parent);
 
-  if (priv->store)
+  if (priv->store != NULL)
     g_object_unref (priv->store);
 
-  if (priv->proxy)
+  if (priv->proxy != NULL)
     {
       debug_dialog_set_enabled (EMPATHY_DEBUG_DIALOG (object), FALSE);
       g_object_unref (priv->proxy);
     }
 
-  if (priv->signal_connection)
+  if (priv->signal_connection != NULL)
     tp_proxy_signal_connection_disconnect (priv->signal_connection);
 
-  if (priv->cms)
+  if (priv->cms != NULL)
     g_object_unref (priv->cms);
 
   (G_OBJECT_CLASS (empathy_debug_dialog_parent_class)->dispose) (object);



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