diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2017-09-26 14:14:44 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2017-10-17 09:39:17 -0700 |
commit | 68f2e9f4ee77e78fcba2a9ae5a7fe8d2e28b6ecb (patch) | |
tree | 9f61f0a2d6d4482e1df6c0e35ec5c517001c3275 /platform/android/src/style/conversion/geojson.hpp | |
parent | 12f78fc8747332a3d54763c9b0cc2e794eefb4f8 (diff) | |
download | qtlocation-mapboxgl-68f2e9f4ee77e78fcba2a9ae5a7fe8d2e28b6ecb.tar.gz |
Replace compile-time polymorphism with runtime polymorphism in the conversion system
Diffstat (limited to 'platform/android/src/style/conversion/geojson.hpp')
-rw-r--r-- | platform/android/src/style/conversion/geojson.hpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/platform/android/src/style/conversion/geojson.hpp b/platform/android/src/style/conversion/geojson.hpp deleted file mode 100644 index 748fe7361e..0000000000 --- a/platform/android/src/style/conversion/geojson.hpp +++ /dev/null @@ -1,24 +0,0 @@ -#pragma once - -#include <mapbox/geojson.hpp> -#include <mbgl/style/conversion.hpp> -#include <mbgl/style/conversion/geojson.hpp> -#include <jni/jni.hpp> - -namespace mbgl { -namespace style { -namespace conversion { - -template <> -optional<GeoJSON> Converter<GeoJSON>::operator()(const mbgl::android::Value& value, Error& error) const { - if(value.isNull() || !value.isString()) { - error = { "no json data found" }; - return {}; - } - - return convert<GeoJSON>(value.toString(), error); -} - -} // namespace conversion -} // namespace style -} // namespace mbgl |