[java-atk-wrapper/wip] JNI: Fix unused warning in jaw_object_set_role
- From: Magdalen Berns <mberns src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [java-atk-wrapper/wip] JNI: Fix unused warning in jaw_object_set_role
- Date: Wed, 24 Jun 2015 15:03:42 +0000 (UTC)
commit b6ffbf7179f6ab857138471bbb397de079944e86
Author: Magdalen Berns <m berns thismagpie com>
Date: Wed Jun 24 16:02:40 2015 +0100
JNI: Fix unused warning in jaw_object_set_role
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=751441
jni/src/jawobject.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/jni/src/jawobject.c b/jni/src/jawobject.c
index 28d91bb..4e07107 100644
--- a/jni/src/jawobject.c
+++ b/jni/src/jawobject.c
@@ -462,13 +462,11 @@ jaw_object_get_role (AtkObject *atk_obj)
static void
jaw_object_set_role (AtkObject *atk_obj, AtkRole role)
{
- JawObject *jaw_obj = JAW_OBJECT(atk_obj);
atk_obj->role = role;
- if (atk_obj != NULL && role)
+ if (atk_obj != NULL && atk_obj->role)
atk_object_set_role(atk_obj, atk_obj->role);
}
-
static AtkStateSet*
jaw_object_ref_state_set (AtkObject *atk_obj)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]