diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-04-01 16:42:20 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-04-01 16:42:42 +0200 |
commit | 220ebf61dd58802256a852f083acbb6f91d945aa (patch) | |
tree | 63d095c15160860cb2d3e8173b252cdc7aedbb44 /android | |
parent | cc97675ca1f7e4f3241188bb550fe72ce1949488 (diff) | |
download | qtlocation-mapboxgl-220ebf61dd58802256a852f083acbb6f91d945aa.tar.gz |
replace iterator variable types with auto
Diffstat (limited to 'android')
-rw-r--r-- | android/cpp/jni.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android/cpp/jni.cpp b/android/cpp/jni.cpp index 9cde5d385d..ce61a01bf9 100644 --- a/android/cpp/jni.cpp +++ b/android/cpp/jni.cpp @@ -160,7 +160,7 @@ jobject std_vector_string_to_jobject(JNIEnv *env, std::vector<std::string> vecto return nullptr; } - for (std::string str : vector) { + for (const auto& str : vector) { env->CallBooleanMethod(jlist, arrayListAddId, std_string_to_jstring(env, str)); if (env->ExceptionCheck()) { env->ExceptionDescribe(); |