[java-atk-wrapper] Simplify code



commit 9ee4209fcefc5831e090680387b3fc7ec7804fe1
Author: Giuseppe <giuseppecapaldo93 gmail com>
Date:   Tue Jul 9 00:16:27 2019 +0200

    Simplify code

 jni/src/jawcomponent.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/jni/src/jawcomponent.c b/jni/src/jawcomponent.c
index b75a20e..59f4905 100644
--- a/jni/src/jawcomponent.c
+++ b/jni/src/jawcomponent.c
@@ -127,12 +127,7 @@ jaw_component_contains (AtkComponent *component, gint x, gint y, AtkCoordType co
                                                     (jint)coord_type);
   (*jniEnv)->DeleteGlobalRef(jniEnv, atk_component);
 
-  if (jcontains == JNI_TRUE)
-  {
-    return TRUE;
-  } else {
-    return FALSE;
-  }
+  return jcontains;
 }
 
 static AtkObject*


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]