summaryrefslogtreecommitdiff
path: root/odk
diff options
context:
space:
mode:
authorumutbayramoglu <umut265@gmail.com>2020-12-07 20:37:42 +0000
committerStephan Bergmann <sbergman@redhat.com>2021-01-05 08:36:28 +0100
commit9feea2ecc59c6daa42dece6c30cf33f5e7df7561 (patch)
tree35400e73889c456041b13e37454097283423c7ec /odk
parentbf81aa59d86ef749dc37cdd49c6fc745376f857d (diff)
tdf#96505 : Get rid of cargo cult long integer literals
Change-Id: I7b269fb5bafceba071ebe649a696ef61301c4018 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107366 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'odk')
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/unix/nativeview.c4
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/windows/nativeview.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/unix/nativeview.c b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/unix/nativeview.c
index 7f4bc1472d58..5343f85e9674 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/unix/nativeview.c
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/unix/nativeview.c
@@ -41,7 +41,7 @@
#include "jawt_md.h"
#include "nativeview.h"
-#define MY_ASSERT(X,S) if (!X) { fprintf(stderr,S); return 0L;}
+#define MY_ASSERT(X,S) if (!X) { fprintf(stderr,S); return 0;}
#define SYSTEM_WIN32 1
#define SYSTEM_WIN16 2
@@ -86,7 +86,7 @@ JNIEXPORT jlong JNICALL Java_NativeView_getNativeWindow
/* Get the drawing surface */
if ((ds = awt.GetDrawingSurface(env, obj_this)) == NULL)
- return 0L;
+ return 0;
/* Lock the drawing surface */
lock = ds->Lock(ds);
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/windows/nativeview.c b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/windows/nativeview.c
index b7b13d6c640d..f7bef492022c 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/windows/nativeview.c
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/windows/nativeview.c
@@ -39,7 +39,7 @@
#include "jawt_md.h"
#include "NativeView.h"
-#define MY_ASSERT(X,S) if (!X) { fprintf(stderr,"%s\n",S); return 0L;}
+#define MY_ASSERT(X,S) if (!X) { fprintf(stderr,"%s\n",S); return 0;}
#define SYSTEM_WIN32 1
#define SYSTEM_WIN16 2
@@ -93,7 +93,7 @@ JNIEXPORT jlong JNICALL Java_NativeView_getNativeWindow
/* Get the drawing surface */
if ((ds = awt.GetDrawingSurface(env, obj_this)) == NULL)
- return 0L;
+ return 0;
/* Lock the drawing surface */
lock = ds->Lock(ds);