diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2018-11-06 16:48:18 +0200 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2018-11-07 16:34:20 +0200 |
commit | 5a70f2b15081bede66a2d736dc3e8f90ba73d601 (patch) | |
tree | ea4ac754f100303760c0120e25474eaba0ab7b66 /include/mbgl/style/layer.hpp | |
parent | 1ba1ead3eab5eb27c24163b93b04b49ffbdf2a3b (diff) | |
download | qtlocation-mapboxgl-5a70f2b15081bede66a2d736dc3e8f90ba73d601.tar.gz |
noexcept specifier for layer factory methods
Diffstat (limited to 'include/mbgl/style/layer.hpp')
-rw-r--r-- | include/mbgl/style/layer.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/mbgl/style/layer.hpp b/include/mbgl/style/layer.hpp index c2aaaa6f48..1e1e97dd0d 100644 --- a/include/mbgl/style/layer.hpp +++ b/include/mbgl/style/layer.hpp @@ -98,13 +98,13 @@ class LayerFactory { public: virtual ~LayerFactory() = default; /// Returns \c true if this factory can produce layers of the given type of the layers; returns \c false otherwise. - virtual bool supportsType(const std::string& type) const = 0; + virtual bool supportsType(const std::string& type) const noexcept = 0; /// Returns a new Layer instance on success call; returns `nulltptr` otherwise. virtual std::unique_ptr<Layer> createLayer(const std::string& id, const conversion::Convertible& value) = 0; protected: - optional<std::string> getSource(const conversion::Convertible& value) const; - bool initSourceLayerAndFilter(Layer*, const conversion::Convertible& value) const; + optional<std::string> getSource(const conversion::Convertible& value) const noexcept; + bool initSourceLayerAndFilter(Layer*, const conversion::Convertible& value) const noexcept; }; /** @@ -117,11 +117,11 @@ public: * * @return LayerManager* */ - static LayerManager* get(); + static LayerManager* get() noexcept; virtual ~LayerManager() = default; /// Returns a new Layer instance on success call; returns `nulltptr` otherwise. - virtual std::unique_ptr<Layer> createLayer(const std::string& type, const std::string& id, const conversion::Convertible& value, conversion::Error& error) = 0; + virtual std::unique_ptr<Layer> createLayer(const std::string& type, const std::string& id, const conversion::Convertible& value, conversion::Error& error) noexcept = 0; protected: LayerManager() = default; |