From f1c75e7de071eafe1a6470dfecb17c51deb226d7 Mon Sep 17 00:00:00 2001 From: vng Date: Tue, 22 May 2012 19:42:57 +0300 Subject: [PATCH] Minor changes. --- android/jni/com/mapswithme/maps/MapStorage.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/android/jni/com/mapswithme/maps/MapStorage.cpp b/android/jni/com/mapswithme/maps/MapStorage.cpp index d2546778a7..bf770ec7ed 100644 --- a/android/jni/com/mapswithme/maps/MapStorage.cpp +++ b/android/jni/com/mapswithme/maps/MapStorage.cpp @@ -57,14 +57,11 @@ extern "C" jclass klass = env->FindClass("com/mapswithme/maps/MapStorage$Index"); ASSERT(klass, ()); - jint group = idx.m_group; - jint country = idx.m_country; - jint region = idx.m_region; - - jmethodID methodId = env->GetMethodID(klass, "", "(III)V"); + jmethodID methodID = env->GetMethodID(klass, "", "(III)V") ASSERT(methodId, ()); - return env->NewObject(klass, methodId, group, country, region); + return env->NewObject(klass, methodID, + (jint)idx.m_group, (jint)idx.m_country, (jint)idx.m_region); } };