From 108defeef6da62aa38240d3f3c9f8007cbc30007 Mon Sep 17 00:00:00 2001 From: vng Date: Thu, 30 May 2013 20:17:14 +0300 Subject: [PATCH] Fix compilation. --- android/jni/com/mapswithme/maps/Framework.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/android/jni/com/mapswithme/maps/Framework.cpp b/android/jni/com/mapswithme/maps/Framework.cpp index ccb22cff0f..68fe9de6f7 100644 --- a/android/jni/com/mapswithme/maps/Framework.cpp +++ b/android/jni/com/mapswithme/maps/Framework.cpp @@ -122,12 +122,13 @@ namespace android void Framework::SetBestDensity(int densityDpi, RenderPolicy::Params & params) { - pair dens[] = { - (120, graphics::EDensityLDPI), - (160, graphics::EDensityMDPI), - (240, graphics::EDensityHDPI), - (320, graphics::EDensityXHDPI), - (480, graphics::EDensityXXHDPI), + typedef pair P; + P dens[] = { + P(120, graphics::EDensityLDPI), + P(160, graphics::EDensityMDPI), + P(240, graphics::EDensityHDPI), + P(320, graphics::EDensityXHDPI), + P(480, graphics::EDensityXXHDPI) }; int prevRange = numeric_limits::max();