diff options
author | Padraig O'Briain <padraigo@src.gnome.org> | 2001-07-27 08:33:35 +0000 |
---|---|---|
committer | Padraig O'Briain <padraigo@src.gnome.org> | 2001-07-27 08:33:35 +0000 |
commit | 212877c783b8d2bec1eeba23369391a7c55d9108 (patch) | |
tree | 728ee2b4d6f0cc664fafaa3c1c663b35a59030ad /atk/atkobject.c | |
parent | 94a3cdf33670d199c5a849a6b6196f7c2120c818 (diff) | |
download | atk-212877c783b8d2bec1eeba23369391a7c55d9108.tar.gz |
Remove all instances of g_return_if_fail (foo != NULL); that are
* atk/*.c:
Remove all instances of g_return_if_fail (foo != NULL); that are
immediately before a g_return_if_fail (ATK_IS_FOO (foo));
since the second check catches the NULL.
Diffstat (limited to 'atk/atkobject.c')
-rwxr-xr-x | atk/atkobject.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/atk/atkobject.c b/atk/atkobject.c index c2e53da..66ea6a1 100755 --- a/atk/atkobject.c +++ b/atk/atkobject.c @@ -401,7 +401,6 @@ atk_object_get_name (AtkObject *accessible) { AtkObjectClass *klass; - g_return_val_if_fail (accessible != NULL, NULL); g_return_val_if_fail (ATK_IS_OBJECT (accessible), NULL); klass = ATK_OBJECT_GET_CLASS (accessible); @@ -426,7 +425,6 @@ atk_object_get_description (AtkObject *accessible) { AtkObjectClass *klass; - g_return_val_if_fail (accessible != NULL, NULL); g_return_val_if_fail (ATK_IS_OBJECT (accessible), NULL); klass = ATK_OBJECT_GET_CLASS (accessible); @@ -449,7 +447,6 @@ atk_object_get_parent (AtkObject *accessible) { AtkObjectClass *klass; - g_return_val_if_fail (accessible != NULL, NULL); g_return_val_if_fail (ATK_IS_OBJECT (accessible), NULL); klass = ATK_OBJECT_GET_CLASS (accessible); @@ -473,7 +470,6 @@ atk_object_get_n_accessible_children (AtkObject *accessible) { AtkObjectClass *klass; - g_return_val_if_fail (accessible != NULL, 0); g_return_val_if_fail (ATK_IS_OBJECT (accessible), 0); klass = ATK_OBJECT_GET_CLASS (accessible); @@ -501,7 +497,6 @@ atk_object_ref_accessible_child (AtkObject *accessible, { AtkObjectClass *klass; - g_return_val_if_fail (accessible != NULL, NULL); g_return_val_if_fail (ATK_IS_OBJECT (accessible), NULL); klass = ATK_OBJECT_GET_CLASS (accessible); @@ -524,7 +519,6 @@ atk_object_ref_relation_set (AtkObject *accessible) { AtkObjectClass *klass; - g_return_val_if_fail (accessible != NULL, NULL); g_return_val_if_fail (ATK_IS_OBJECT (accessible), NULL); klass = ATK_OBJECT_GET_CLASS (accessible); @@ -562,7 +556,6 @@ AtkRole atk_object_get_role (AtkObject *accessible) { AtkObjectClass *klass; - g_return_val_if_fail (accessible != NULL, ATK_ROLE_UNKNOWN); g_return_val_if_fail (ATK_IS_OBJECT (accessible), ATK_ROLE_UNKNOWN); klass = ATK_OBJECT_GET_CLASS (accessible); @@ -586,7 +579,6 @@ AtkStateSet* atk_object_ref_state_set (AtkObject *accessible) { AtkObjectClass *klass; - g_return_val_if_fail (accessible != NULL, NULL); g_return_val_if_fail (ATK_IS_OBJECT (accessible), NULL); klass = ATK_OBJECT_GET_CLASS (accessible); @@ -610,7 +602,6 @@ atk_object_get_index_in_parent (AtkObject *accessible) { AtkObjectClass *klass; - g_return_val_if_fail (accessible != NULL, -1); g_return_val_if_fail (ATK_OBJECT (accessible), -1); klass = ATK_OBJECT_GET_CLASS (accessible); @@ -633,7 +624,6 @@ atk_object_set_name (AtkObject *accessible, { AtkObjectClass *klass; - g_return_if_fail (accessible != NULL); g_return_if_fail (ATK_IS_OBJECT (accessible)); g_return_if_fail (name != NULL); @@ -658,7 +648,6 @@ atk_object_set_description (AtkObject *accessible, { AtkObjectClass *klass; - g_return_if_fail (accessible != NULL); g_return_if_fail (ATK_IS_OBJECT (accessible)); g_return_if_fail (description != NULL); @@ -683,7 +672,6 @@ atk_object_set_parent (AtkObject *accessible, { AtkObjectClass *klass; - g_return_if_fail (accessible != NULL); g_return_if_fail (ATK_IS_OBJECT (accessible)); klass = ATK_OBJECT_GET_CLASS (accessible); @@ -704,7 +692,6 @@ atk_object_set_role (AtkObject *accessible, { AtkObjectClass *klass; - g_return_if_fail (accessible != NULL); g_return_if_fail (ATK_IS_OBJECT (accessible)); klass = ATK_OBJECT_GET_CLASS (accessible); @@ -728,7 +715,6 @@ atk_object_connect_property_change_handler (AtkObject *accessible, { AtkObjectClass *klass; - g_return_val_if_fail (accessible != NULL, 0); g_return_val_if_fail (ATK_IS_OBJECT (accessible), 0); g_return_val_if_fail ((handler != NULL), 0); @@ -752,7 +738,6 @@ atk_object_remove_property_change_handler (AtkObject *accessible, { AtkObjectClass *klass; - g_return_if_fail (accessible != NULL); g_return_if_fail (ATK_IS_OBJECT (accessible)); klass = ATK_OBJECT_GET_CLASS (accessible); @@ -776,7 +761,6 @@ atk_implementor_ref_accessible (AtkImplementor *object) AtkImplementorIface *iface; AtkObject *accessible = NULL; - g_return_val_if_fail (object != NULL, NULL); g_return_val_if_fail (ATK_IS_IMPLEMENTOR (object), NULL); iface = ATK_IMPLEMENTOR_GET_IFACE (object); |