summaryrefslogtreecommitdiff
path: root/src/mbgl/style/sources/geojson_source_impl.hpp
diff options
context:
space:
mode:
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 8fa40c78e9..0e1dcab108 100644
--- a/src/mbgl/style/sources/geojson_source_impl.hpp
+++ b/src/mbgl/style/sources/geojson_source_impl.hpp
@@ -30,13 +30,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