diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2018-08-22 12:27:43 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2018-09-06 17:26:28 -0700 |
commit | 9cd50a891dbd320e9e4816eef4545e0a41f9ab32 (patch) | |
tree | b424e2dcee3090d9c3f37864112d19799dd9af35 /platform/android/src/graphics/rectf.cpp | |
parent | 70a204924552463eaeca975a5dd28c00b21aa53d (diff) | |
download | qtlocation-mapboxgl-upstream/jni.hpp-4.tar.gz |
[android] jni.hpp 4.0.0upstream/jni.hpp-4
Diffstat (limited to 'platform/android/src/graphics/rectf.cpp')
-rw-r--r-- | platform/android/src/graphics/rectf.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/platform/android/src/graphics/rectf.cpp b/platform/android/src/graphics/rectf.cpp index 9f05728b4c..8f418da037 100644 --- a/platform/android/src/graphics/rectf.cpp +++ b/platform/android/src/graphics/rectf.cpp @@ -3,26 +3,26 @@ namespace mbgl { namespace android { -float RectF::getLeft(jni::JNIEnv& env, jni::Object<RectF> rectf) { - static auto javaClass = jni::Class<RectF>::Singleton(env); +float RectF::getLeft(jni::JNIEnv& env, const jni::Object<RectF>& rectf) { + static auto& javaClass = jni::Class<RectF>::Singleton(env); static auto field = javaClass.GetField<float>(env, "left"); return rectf.Get(env, field); } -float RectF::getTop(jni::JNIEnv& env, jni::Object<RectF> rectf) { - static auto javaClass = jni::Class<RectF>::Singleton(env); +float RectF::getTop(jni::JNIEnv& env, const jni::Object<RectF>& rectf) { + static auto& javaClass = jni::Class<RectF>::Singleton(env); static auto field = javaClass.GetField<float>(env, "top"); return rectf.Get(env, field); } -float RectF::getRight(jni::JNIEnv& env, jni::Object<RectF> rectf) { - static auto javaClass = jni::Class<RectF>::Singleton(env); +float RectF::getRight(jni::JNIEnv& env, const jni::Object<RectF>& rectf) { + static auto& javaClass = jni::Class<RectF>::Singleton(env); static auto field = javaClass.GetField<float>(env, "right"); return rectf.Get(env, field); } -float RectF::getBottom(jni::JNIEnv& env, jni::Object<RectF> rectf) { - static auto javaClass = jni::Class<RectF>::Singleton(env); +float RectF::getBottom(jni::JNIEnv& env, const jni::Object<RectF>& rectf) { + static auto& javaClass = jni::Class<RectF>::Singleton(env); static auto field = javaClass.GetField<float>(env, "bottom"); return rectf.Get(env, field); } |