From d2abb1b6d5cc129acaadab15152ae286b989d9ba Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Thu, 25 Aug 2016 17:44:44 -0700 Subject: [core] Change GeoJSONSource::getURL() to return an optional GeoJSON sources may have inline GeoJSON rather than a URL; returning an optional type ensures that consumers handle this case. --- include/mbgl/style/sources/geojson_source.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/mbgl/style/sources/geojson_source.hpp b/include/mbgl/style/sources/geojson_source.hpp index 306a330252..e633e6efba 100644 --- a/include/mbgl/style/sources/geojson_source.hpp +++ b/include/mbgl/style/sources/geojson_source.hpp @@ -2,6 +2,7 @@ #include #include +#include #include @@ -42,7 +43,7 @@ public: void setURL(const std::string& url); void setGeoJSON(const GeoJSON&); - std::string getURL(); + optional getURL(); // Private implementation -- cgit v1.2.1