Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Pimenov <m@maps.me>2019-05-14 20:17:52 +0300
committerVladimir Byko-Ianko <bykoianko@gmail.com>2019-05-15 13:35:08 +0300
commitc11c41d67738500b0d1eeea7170a775441578cae (patch)
tree0f888fdd6ec1cef7baa4e32cde00d6dd608461e2 /android
parent06978f4585c463e97db42f96e7140616061939c3 (diff)
Fixed some warnings.
Diffstat (limited to 'android')
-rw-r--r--android/jni/com/mapswithme/maps/DownloadResourcesLegacyActivity.cpp2
-rw-r--r--android/jni/com/mapswithme/maps/SearchEngine.cpp1
2 files changed, 0 insertions, 3 deletions
diff --git a/android/jni/com/mapswithme/maps/DownloadResourcesLegacyActivity.cpp b/android/jni/com/mapswithme/maps/DownloadResourcesLegacyActivity.cpp
index 60fdedf268..58b96fe797 100644
--- a/android/jni/com/mapswithme/maps/DownloadResourcesLegacyActivity.cpp
+++ b/android/jni/com/mapswithme/maps/DownloadResourcesLegacyActivity.cpp
@@ -172,8 +172,6 @@ extern "C"
static void DownloadFileProgress(std::shared_ptr<jobject> listener, HttpRequest const & req)
{
- FileToDownload & curFile = g_filesToDownload.back();
-
JNIEnv * env = jni::GetEnv();
static jmethodID methodID = jni::GetMethodID(env, *listener, "onProgress", "(I)V");
env->CallVoidMethod(*listener, methodID, static_cast<jint>(g_totalDownloadedBytes + req.GetProgress().first));
diff --git a/android/jni/com/mapswithme/maps/SearchEngine.cpp b/android/jni/com/mapswithme/maps/SearchEngine.cpp
index d2ebf5d37b..867429a5a6 100644
--- a/android/jni/com/mapswithme/maps/SearchEngine.cpp
+++ b/android/jni/com/mapswithme/maps/SearchEngine.cpp
@@ -293,7 +293,6 @@ jobject ToJavaResult(Result & result, search::ProductInfo const & productInfo, b
double lat, double lon)
{
JNIEnv * env = jni::GetEnv();
- ::Framework * fr = g_framework->NativeFramework();
jni::TScopedLocalIntArrayRef ranges(env, env->NewIntArray(result.GetHighlightRangesCount() * 2));
jint * rawArr = env->GetIntArrayElements(ranges, nullptr);