summaryrefslogtreecommitdiff
path: root/src/mbgl/style
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-03-04 16:34:23 +0100
committerKonstantin Käfer <mail@kkaefer.com>2015-03-06 13:26:11 +0100
commit0151fe6c01367ef03a2ff282b90e32dd3785a7c2 (patch)
tree25ef4ed68fa401c47d9c31298405cb4ec490565b /src/mbgl/style
parentd161e0c3c39b4466ae94f4f7bee556017aec0f10 (diff)
downloadqtlocation-mapboxgl-0151fe6c01367ef03a2ff282b90e32dd3785a7c2.tar.gz
pass StyleLayer objects as const ref instead of a shared pointer
Diffstat (limited to 'src/mbgl/style')
-rw-r--r--src/mbgl/style/style_layer.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/style/style_layer.hpp b/src/mbgl/style/style_layer.hpp
index 1dadfed94b..6e1fc7912b 100644
--- a/src/mbgl/style/style_layer.hpp
+++ b/src/mbgl/style/style_layer.hpp
@@ -24,7 +24,7 @@ class StyleLayer {
public:
StyleLayer(const std::string &id, std::map<ClassID, ClassProperties> &&styles);
- template <typename T> const T &getProperties() {
+ template <typename T> const T &getProperties() const {
if (properties.is<T>()) {
return properties.get<T>();
} else {