[kazehakase-svn] [3539] cleanup.

Back to archive index

svnno****@sourc***** svnno****@sourc*****
Fri Jan 23 11:26:04 JST 2009


Revision: 3539
          http://svn.sourceforge.jp/view?root=kazehakase&view=rev&rev=3539
Author:   ikezoe
Date:     2009-01-23 11:26:04 +0900 (Fri, 23 Jan 2009)

Log Message:
-----------
cleanup.

Modified Paths:
--------------
    kazehakase/trunk/src/bookmarks/kz-bookmark.c

Modified: kazehakase/trunk/src/bookmarks/kz-bookmark.c
===================================================================
--- kazehakase/trunk/src/bookmarks/kz-bookmark.c	2009-01-23 01:03:35 UTC (rev 3538)
+++ kazehakase/trunk/src/bookmarks/kz-bookmark.c	2009-01-23 02:26:04 UTC (rev 3539)
@@ -725,10 +725,7 @@
 {
 	g_return_val_if_fail(KZ_IS_BOOKMARK(bookmark), FALSE);
 
-	if (bookmark->type == KZ_BOOKMARK_SEPARATOR)
-		return TRUE;
-	else
-		return FALSE;
+	return (bookmark->type == KZ_BOOKMARK_SEPARATOR);
 }
 
 
@@ -737,13 +734,8 @@
 {
 	g_return_val_if_fail(KZ_IS_BOOKMARK(bookmark), FALSE);
 
-	if (bookmark->type == KZ_BOOKMARK_FOLDER ||
-	    bookmark->type == KZ_BOOKMARK_PURE_FOLDER)
-	{
-		return TRUE;
-	}
-
-	return FALSE;
+	return (bookmark->type == KZ_BOOKMARK_FOLDER ||
+	        bookmark->type == KZ_BOOKMARK_PURE_FOLDER);
 }
 
 
@@ -752,10 +744,7 @@
 {
 	g_return_val_if_fail(KZ_IS_BOOKMARK(bookmark), FALSE);
 
-	if (bookmark->type == KZ_BOOKMARK_PURE_FOLDER)
-		return TRUE;
-	else
-		return FALSE;
+	return (bookmark->type == KZ_BOOKMARK_PURE_FOLDER);
 }
 
 
@@ -928,10 +917,7 @@
 
 	list =  g_object_get_qdata(G_OBJECT(bookmark), children_quark);
 
-	if (list)
-		return g_list_copy(list);
-
-	return NULL;
+	return list ? g_list_copy(list) : NULL;
 }
 
 GList *
@@ -955,10 +941,7 @@
 
 	list =  g_object_get_qdata(G_OBJECT(bookmark), children_quark);
 
-	if (list)
-		return TRUE;
-	else
-		return FALSE;
+	return (list != NULL);
 }
 
 gboolean



More information about the Kazehakase-cvs mailing list
Back to archive index