summaryrefslogtreecommitdiff
path: root/include/mbgl/gl/custom_layer.hpp
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2020-03-18 16:46:24 +0200
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2020-03-24 20:53:55 +0200
commit280b80677797ceda07ddf75f567dd3613f285319 (patch)
treeef1eef74a7c17677fdff50dbf4bbbb8452b5ce0f /include/mbgl/gl/custom_layer.hpp
parent99dbb3eed50f1b89d23604916cee6de965e1f4cb (diff)
downloadqtlocation-mapboxgl-280b80677797ceda07ddf75f567dd3613f285319.tar.gz
[core] Move generic setProperty() parts to the base Layer class
Diffstat (limited to 'include/mbgl/gl/custom_layer.hpp')
-rw-r--r--include/mbgl/gl/custom_layer.hpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/include/mbgl/gl/custom_layer.hpp b/include/mbgl/gl/custom_layer.hpp
index 5dce484980..8b60af5d7f 100644
--- a/include/mbgl/gl/custom_layer.hpp
+++ b/include/mbgl/gl/custom_layer.hpp
@@ -66,21 +66,17 @@ public:
CustomLayer(const std::string& id,
std::unique_ptr<CustomLayerHost> host);
+ CustomLayer(const CustomLayer&) = delete;
~CustomLayer() final;
-
- // Dynamic properties
- optional<conversion::Error> setProperty(const std::string& name, const conversion::Convertible& value) final;
- StyleProperty getProperty(const std::string&) const final;
- // Private implementation
-
class Impl;
const Impl& impl() const;
-
Mutable<Impl> mutableImpl() const;
- std::unique_ptr<Layer> cloneRef(const std::string& id) const final;
-
- CustomLayer(const CustomLayer&) = delete;
+private:
+ optional<conversion::Error> setPropertyInternal(const std::string& name,
+ const conversion::Convertible& value) final;
+ StyleProperty getProperty(const std::string&) const final;
+ std::unique_ptr<Layer> cloneRef(const std::string& id) const final;
Mutable<Layer::Impl> mutableBaseImpl() const final;
};