replace "icon && G_IS_ICON (icon)" by simply "G_IS_ICON (icon)".
authorMichael Natterer <mitch@imendio.com>
Wed, 6 Feb 2008 13:22:57 +0000 (13:22 +0000)
committerMichael Natterer <mitch@src.gnome.org>
Wed, 6 Feb 2008 13:22:57 +0000 (13:22 +0000)
2008-02-06  Michael Natterer  <mitch@imendio.com>

* gfileinfo.c (g_file_info_get_icon): replace
"icon && G_IS_ICON (icon)" by simply "G_IS_ICON (icon)".

svn path=/trunk/; revision=6463

gio/ChangeLog
gio/gfileinfo.c

index 9fe8320..7534e94 100644 (file)
@@ -1,3 +1,8 @@
+2008-02-06  Michael Natterer  <mitch@imendio.com>
+
+       * gfileinfo.c (g_file_info_get_icon): replace
+       "icon && G_IS_ICON (icon)" by simply "G_IS_ICON (icon)".
+
 2008-02-06  Tomas Bzatek  <tbzatek@redhat.com>
 
        * gfile.c (g_file_create):
index 1b62949..17768ed 100644 (file)
@@ -1315,7 +1315,7 @@ g_file_info_get_icon (GFileInfo *info)
   
   value = g_file_info_find_value (info, attr);
   obj = _g_file_attribute_value_get_object (value);
-  if (obj != NULL && G_IS_ICON (obj))
+  if (G_IS_ICON (obj))
     return G_ICON (obj);
   return NULL;
 }