diff options
author | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2017-05-31 11:53:04 -0700 |
---|---|---|
committer | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2017-06-01 15:38:01 -0700 |
commit | 8b37a0704c7c20b1664fee3dfcc79139982a1ce7 (patch) | |
tree | 9c0a50330b7e4f152a3a9ee25685fcbe8b9a4df4 /platform/android | |
parent | 843da07b28a840fd850056c4b15d492ccc76a646 (diff) | |
download | qtlocation-mapboxgl-8b37a0704c7c20b1664fee3dfcc79139982a1ce7.tar.gz |
[core] Use fixed-size std::array for ImageSource coordinates
Diffstat (limited to 'platform/android')
-rw-r--r-- | platform/android/src/style/android_conversion.hpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/platform/android/src/style/android_conversion.hpp b/platform/android/src/style/android_conversion.hpp index 790c82a1c0..6327ed96d0 100644 --- a/platform/android/src/style/android_conversion.hpp +++ b/platform/android/src/style/android_conversion.hpp @@ -68,8 +68,7 @@ inline optional<float> toNumber(const mbgl::android::Value& value) { inline optional<double> toDouble(const mbgl::android::Value& value) { if (value.isNumber()) { - auto num = value.toDouble(); - return num; + return value.toDouble(); } else { return {}; } |