diff options
author | vng <viktor.govako@gmail.com> | 2014-07-18 18:04:51 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:21:13 +0300 |
commit | 0e0be0fbb8ef790894fb3686ee7206cacd7a5505 (patch) | |
tree | b8201fe83d4280b9a45dc1c998bb35d09c01f800 /android/jni/com/mapswithme/maps/Framework.cpp | |
parent | 23a92d1e73f333e596925eac233f2363ea0d73eb (diff) |
[android] Minor code fixes.
Diffstat (limited to 'android/jni/com/mapswithme/maps/Framework.cpp')
-rw-r--r-- | android/jni/com/mapswithme/maps/Framework.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/android/jni/com/mapswithme/maps/Framework.cpp b/android/jni/com/mapswithme/maps/Framework.cpp index 246dff6dcf..46dfb2089f 100644 --- a/android/jni/com/mapswithme/maps/Framework.cpp +++ b/android/jni/com/mapswithme/maps/Framework.cpp @@ -1037,10 +1037,10 @@ extern "C" { jclass stringClass = jni::GetStringClass(env); - string exts[] = { DATA_FILE_EXTENSION, FONT_FILE_EXTENSION}; + char const * exts[] = { DATA_FILE_EXTENSION, FONT_FILE_EXTENSION }; jobjectArray resultArray = env->NewObjectArray(ARRAY_SIZE(exts), stringClass, NULL); - for (int i = 0; i < ARRAY_SIZE(exts); ++i) + for (size_t i = 0; i < ARRAY_SIZE(exts); ++i) env->SetObjectArrayElement(resultArray, i, jni::ToJavaString(env, exts[i])); return resultArray; |