[gnome-menus/wip/gobject-review: 35/38] libmenu: Remove unneeded cast
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-menus/wip/gobject-review: 35/38] libmenu: Remove unneeded cast
- Date: Sun, 12 Jun 2011 10:02:11 +0000 (UTC)
commit 05e27fba0c99750b1998a875981a43bf2bfece84
Author: Vincent Untz <vuntz gnome org>
Date: Sun Jun 12 11:12:42 2011 +0200
libmenu: Remove unneeded cast
libmenu/gmenu-tree.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libmenu/gmenu-tree.c b/libmenu/gmenu-tree.c
index d92c2b0..17c0ae5 100644
--- a/libmenu/gmenu-tree.c
+++ b/libmenu/gmenu-tree.c
@@ -1095,7 +1095,7 @@ GMenuTreeDirectory *
gmenu_tree_alias_get_aliased_directory (GMenuTreeAlias *alias)
{
g_return_val_if_fail (alias != NULL, NULL);
- g_return_val_if_fail (((GMenuTreeItem*)alias->aliased_item)->type == GMENU_TREE_ITEM_DIRECTORY, NULL);
+ g_return_val_if_fail (alias->aliased_item->type == GMENU_TREE_ITEM_DIRECTORY, NULL);
return (GMenuTreeDirectory *) gmenu_tree_item_ref (alias->aliased_item);
}
@@ -1110,7 +1110,7 @@ GMenuTreeEntry *
gmenu_tree_alias_get_aliased_entry (GMenuTreeAlias *alias)
{
g_return_val_if_fail (alias != NULL, NULL);
- g_return_val_if_fail (((GMenuTreeItem*)alias->aliased_item)->type == GMENU_TREE_ITEM_ENTRY, NULL);
+ g_return_val_if_fail (alias->aliased_item->type == GMENU_TREE_ITEM_ENTRY, NULL);
return (GMenuTreeEntry *) gmenu_tree_item_ref (alias->aliased_item);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]