summaryrefslogtreecommitdiff
path: root/platform/android/src/snapshotter/map_snapshot.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2018-08-22 12:27:43 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2018-09-07 09:44:12 -0700
commit79bf0e8af6bf9ec829a352d56b8e70ccc8f4fa41 (patch)
tree2b646523d45f0fa9917612ed80de12bbd35d5b1e /platform/android/src/snapshotter/map_snapshot.hpp
parent5911e3b13f2f2b6741e26db3e41513ed21cc95b4 (diff)
downloadqtlocation-mapboxgl-79bf0e8af6bf9ec829a352d56b8e70ccc8f4fa41.tar.gz
[android] jni.hpp 4.0.0
Diffstat (limited to 'platform/android/src/snapshotter/map_snapshot.hpp')
-rw-r--r--platform/android/src/snapshotter/map_snapshot.hpp6
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;