summaryrefslogtreecommitdiff
path: root/src/mbgl/style/style.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/style/style.hpp')
-rw-r--r--src/mbgl/style/style.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/style/style.hpp b/src/mbgl/style/style.hpp
index 2846ddb388..1af020d6c2 100644
--- a/src/mbgl/style/style.hpp
+++ b/src/mbgl/style/style.hpp
@@ -66,13 +66,13 @@ public:
Source* getSource(const std::string& id) const;
void addSource(std::unique_ptr<Source>);
- void removeSource(const std::string& sourceID);
+ std::unique_ptr<Source> removeSource(const std::string& sourceID);
std::vector<const Layer*> getLayers() const;
Layer* getLayer(const std::string& id) const;
Layer* addLayer(std::unique_ptr<Layer>,
optional<std::string> beforeLayerID = {});
- void removeLayer(const std::string& layerID);
+ std::unique_ptr<Layer> removeLayer(const std::string& layerID);
std::string getName() const;
LatLng getDefaultLatLng() const;