diff options
Diffstat (limited to 'platform/android/src/snapshotter/map_snapshot.hpp')
-rw-r--r-- | platform/android/src/snapshotter/map_snapshot.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/android/src/snapshotter/map_snapshot.hpp b/platform/android/src/snapshotter/map_snapshot.hpp index 3cd293b621..6b82d02835 100644 --- a/platform/android/src/snapshotter/map_snapshot.hpp +++ b/platform/android/src/snapshotter/map_snapshot.hpp @@ -23,7 +23,7 @@ public: static void registerNative(jni::JNIEnv&); - static jni::Object<MapSnapshot> New(JNIEnv& env, + static jni::Local<jni::Object<MapSnapshot>> New(JNIEnv& env, PremultipliedImage&& image, float pixelRatio, std::vector<std::string> attributions, @@ -35,8 +35,8 @@ public: MapSnapshot(float pixelRatio, PointForFn, LatLngForFn); ~MapSnapshot(); - jni::Object<PointF> pixelForLatLng(jni::JNIEnv&, jni::Object<LatLng>); - jni::Object<LatLng> latLngForPixel(jni::JNIEnv&, jni::Object<PointF>); + jni::Local<jni::Object<PointF>> pixelForLatLng(jni::JNIEnv&, jni::Object<LatLng>&); + jni::Local<jni::Object<LatLng>> latLngForPixel(jni::JNIEnv&, jni::Object<PointF>&); private: float pixelRatio; |