summaryrefslogtreecommitdiff
path: root/src/mbgl/style/sources/geojson_source_impl.hpp
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2018-10-18 10:54:24 +0300
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2018-12-12 15:08:18 +0200
commit664ceb43980cb7d90a0d8b5fa1a48f83662322c9 (patch)
treed662d782fe4875a8a1b7f780a3d34f659f79acd3 /src/mbgl/style/sources/geojson_source_impl.hpp
parent8a03d16990b6fdde0f117def3a1b4bb2c9c92d4c (diff)
downloadqtlocation-mapboxgl-664ceb43980cb7d90a0d8b5fa1a48f83662322c9.tar.gz
[core] Share GeoJSONData pointer as weak_ptr instead of raw ptr
Diffstat (limited to 'src/mbgl/style/sources/geojson_source_impl.hpp')
-rw-r--r--src/mbgl/style/sources/geojson_source_impl.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/style/sources/geojson_source_impl.hpp b/src/mbgl/style/sources/geojson_source_impl.hpp
index 9984bbdd62..b88ab35ee0 100644
--- a/src/mbgl/style/sources/geojson_source_impl.hpp
+++ b/src/mbgl/style/sources/geojson_source_impl.hpp
@@ -31,13 +31,13 @@ public:
~Impl() final;
Range<uint8_t> getZoomRange() const;
- GeoJSONData* getData() const;
+ std::weak_ptr<GeoJSONData> getData() const;
optional<std::string> getAttribution() const final;
private:
GeoJSONOptions options;
- std::unique_ptr<GeoJSONData> data;
+ std::shared_ptr<GeoJSONData> data;
};
} // namespace style