Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/common')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/common/library/callback.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/library/callback.c b/bundles/org.eclipse.swt/Eclipse SWT/common/library/callback.c
index d1bdfd6013..d1414df355 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/library/callback.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/library/callback.c
@@ -236,9 +236,8 @@ JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_Callback_getEnabled
int callback(int index, ...)
{
- if (!CallbacksEnabled) {
- return 0;
- } else {
+ if (!CallbacksEnabled) return 0;
+
DECL_GLOB(pGlob)
jobject callback = PGLOB(dllCallbackInfo)[index].callin;
JNIEnv *env = PGLOB(dllCallbackInfo)[index].env;
@@ -302,7 +301,6 @@ int callback(int index, ...)
fprintf(stderr, "* callback exiting %d\n", --PGLOB(counter));
#endif
return result;
- }
}
/*

Back to the top