From bfe2bcfcf1dfdea07b0672f35d6b9218f2ca060a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Thu, 11 May 2017 03:59:49 +0200 Subject: [PATCH] Fix typo in nativeDelete method --- .../jni/com_googlecode_tesseract_android/resultiterator.cpp | 1 - .../src/com/googlecode/tesseract/android/ResultIterator.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tess-two/jni/com_googlecode_tesseract_android/resultiterator.cpp b/tess-two/jni/com_googlecode_tesseract_android/resultiterator.cpp index a0b45c9bd..cac17f0b0 100644 --- a/tess-two/jni/com_googlecode_tesseract_android/resultiterator.cpp +++ b/tess-two/jni/com_googlecode_tesseract_android/resultiterator.cpp @@ -107,7 +107,6 @@ void Java_com_googlecode_tesseract_android_ResultIterator_nativeDelete(JNIEnv *e if (resultIterator != 0) { delete resultIterator; } - return; } #ifdef __cplusplus diff --git a/tess-two/src/com/googlecode/tesseract/android/ResultIterator.java b/tess-two/src/com/googlecode/tesseract/android/ResultIterator.java index 3ffcedac7..f736c447b 100644 --- a/tess-two/src/com/googlecode/tesseract/android/ResultIterator.java +++ b/tess-two/src/com/googlecode/tesseract/android/ResultIterator.java @@ -150,5 +150,5 @@ public void delete() { private static native float nativeConfidence(long nativeResultIterator, int level); private static native boolean nativeIsAtBeginningOf(long nativeResultIterator, int level); private static native boolean nativeIsAtFinalElement(long nativeResultIterator, int level, int element); - private static native void nativeDelete(long nativeIterator); + private static native void nativeDelete(long nativeResultIterator); }