diff options
author | 2011-10-28 17:06:58 +0900 | |
---|---|---|
committer | 2011-10-28 17:06:58 +0900 | |
commit | 94810dec2115e92365b5c53f8e5bccfc5bec2e89 (patch) | |
tree | 67814eedfcf7be80a86ede76f98100d9b9176a04 /native/jni/jni_common.cpp | |
parent | 5049f5bbb4aec4fd7daefd9a904e072526bb9ecb (diff) | |
download | latinime-94810dec2115e92365b5c53f8e5bccfc5bec2e89.tar.gz latinime-94810dec2115e92365b5c53f8e5bccfc5bec2e89.tar.xz latinime-94810dec2115e92365b5c53f8e5bccfc5bec2e89.zip |
Remove NULL from native/jni
Change-Id: I7c4e32d0d69876c7ea85d6997c9a40fa362152eb
Diffstat (limited to 'native/jni/jni_common.cpp')
-rw-r--r-- | native/jni/jni_common.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/native/jni/jni_common.cpp b/native/jni/jni_common.cpp index 8643f723f..958abfd67 100644 --- a/native/jni/jni_common.cpp +++ b/native/jni/jni_common.cpp @@ -32,14 +32,14 @@ using namespace latinime; * Returns the JNI version on success, -1 on failure. */ jint JNI_OnLoad(JavaVM* vm, void* reserved) { - JNIEnv* env = NULL; + JNIEnv* env = 0; jint result = -1; if (vm->GetEnv((void**) &env, JNI_VERSION_1_4) != JNI_OK) { LOGE("ERROR: GetEnv failed"); goto bail; } - assert(env != NULL); + assert(env != 0); if (!register_BinaryDictionary(env)) { LOGE("ERROR: BinaryDictionary native registration failed"); @@ -63,7 +63,7 @@ namespace latinime { int registerNativeMethods(JNIEnv* env, const char* className, JNINativeMethod* methods, int numMethods) { jclass clazz = env->FindClass(className); - if (clazz == NULL) { + if (clazz == 0) { LOGE("Native registration unable to find class '%s'", className); return JNI_FALSE; } |