summaryrefslogtreecommitdiff
path: root/src/mbgl/style/style_impl.hpp
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-20 12:38:09 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-21 11:21:50 +0200
commit4e7c4560e99d7e1a425adf127eba6fab0abc6d0b (patch)
treed5b3750fca030e3eacc48e159793f7fcc313eab6 /src/mbgl/style/style_impl.hpp
parent67aadc67f59a2e3f8c1826cd4f3306209ee1d2dc (diff)
downloadqtlocation-mapboxgl-4e7c4560e99d7e1a425adf127eba6fab0abc6d0b.tar.gz
[core] Fix performance-unnecessary-value-param errors
As reported by clang-tidy-8.
Diffstat (limited to 'src/mbgl/style/style_impl.hpp')
-rw-r--r--src/mbgl/style/style_impl.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mbgl/style/style_impl.hpp b/src/mbgl/style/style_impl.hpp
index c16b82e90b..4573a3966a 100644
--- a/src/mbgl/style/style_impl.hpp
+++ b/src/mbgl/style/style_impl.hpp
@@ -65,8 +65,7 @@ public:
std::vector<const Layer*> getLayers() const;
Layer* getLayer(const std::string& id) const;
- Layer* addLayer(std::unique_ptr<Layer>,
- optional<std::string> beforeLayerID = {});
+ Layer* addLayer(std::unique_ptr<Layer>, const optional<std::string>& beforeLayerID = {});
std::unique_ptr<Layer> removeLayer(const std::string& layerID);
std::string getName() const;