diff options
author | 2012-07-25 17:51:43 +0900 | |
---|---|---|
committer | 2012-07-25 18:56:51 +0900 | |
commit | 0bbb917d12358e0264796e75dea888f244761b64 (patch) | |
tree | f76662d6f1962d08021b4949d1c9e6585050c6b7 /native/jni/jni_common.cpp | |
parent | 0657b9698a110f8e895448d829478982ce37b6d1 (diff) | |
download | latinime-0bbb917d12358e0264796e75dea888f244761b64.tar.gz latinime-0bbb917d12358e0264796e75dea888f244761b64.tar.xz latinime-0bbb917d12358e0264796e75dea888f244761b64.zip |
Cosmetic fixes and style fixes
Change-Id: I69c42ff945cdf0d5205c6ca61d6861a0479492dc
Diffstat (limited to 'native/jni/jni_common.cpp')
-rw-r--r-- | native/jni/jni_common.cpp | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/native/jni/jni_common.cpp b/native/jni/jni_common.cpp index 1314bab27..8d7bce79e 100644 --- a/native/jni/jni_common.cpp +++ b/native/jni/jni_common.cpp @@ -1,19 +1,19 @@ /* -** -** Copyright 2011, The Android Open Source Project -** -** Licensed under the Apache License, Version 2.0 (the "License"); -** you may not use this file except in compliance with the License. -** You may obtain a copy of the License at -** -** http://www.apache.org/licenses/LICENSE-2.0 -** -** Unless required by applicable law or agreed to in writing, software -** distributed under the License is distributed on an "AS IS" BASIS, -** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -** See the License for the specific language governing permissions and -** limitations under the License. -*/ + * + * Copyright 2011, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ #define LOG_TAG "LatinIME: jni" @@ -33,8 +33,8 @@ using namespace latinime; /* * Returns the JNI version on success, -1 on failure. */ -jint JNI_OnLoad(JavaVM* vm, void* reserved) { - JNIEnv* env = 0; +jint JNI_OnLoad(JavaVM *vm, void *reserved) { + JNIEnv *env = 0; jint result = -1; if (vm->GetEnv((void**) &env, JNI_VERSION_1_4) != JNI_OK) { @@ -67,7 +67,7 @@ bail: namespace latinime { -int registerNativeMethods(JNIEnv* env, const char* className, JNINativeMethod* methods, +int registerNativeMethods(JNIEnv *env, const char *className, JNINativeMethod *methods, int numMethods) { jclass clazz = env->FindClass(className); if (clazz == 0) { @@ -82,5 +82,4 @@ int registerNativeMethods(JNIEnv* env, const char* className, JNINativeMethod* m env->DeleteLocalRef(clazz); return JNI_TRUE; } - } // namespace latinime |