summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-04-01 16:42:20 +0200
committerKonstantin Käfer <mail@kkaefer.com>2015-04-01 16:42:42 +0200
commit220ebf61dd58802256a852f083acbb6f91d945aa (patch)
tree63d095c15160860cb2d3e8173b252cdc7aedbb44 /android
parentcc97675ca1f7e4f3241188bb550fe72ce1949488 (diff)
downloadqtlocation-mapboxgl-220ebf61dd58802256a852f083acbb6f91d945aa.tar.gz
replace iterator variable types with auto
Diffstat (limited to 'android')
-rw-r--r--android/cpp/jni.cpp2
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();