diff options
author | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2019-07-23 08:54:16 +0300 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-07-24 21:04:56 +0300 |
commit | 852fef66ef4cbbe753527b42cf23c59de59399b3 (patch) | |
tree | 8636a881439c7ebf0b53b6a3fdbdc4d4bbf5a40a /src/mbgl/layout | |
parent | 6798d21eda03ecc2fb2c46c448a45713fc493f86 (diff) | |
download | qtlocation-mapboxgl-852fef66ef4cbbe753527b42cf23c59de59399b3.tar.gz |
[core] Force getGeometries() return const ref
Diffstat (limited to 'src/mbgl/layout')
-rw-r--r-- | src/mbgl/layout/symbol_feature.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/layout/symbol_feature.hpp b/src/mbgl/layout/symbol_feature.hpp index 72f613d4b6..2c952fc12a 100644 --- a/src/mbgl/layout/symbol_feature.hpp +++ b/src/mbgl/layout/symbol_feature.hpp @@ -20,7 +20,7 @@ public: optional<Value> getValue(const std::string& key) const override { return feature->getValue(key); }; std::unordered_map<std::string,Value> getProperties() const override { return feature->getProperties(); }; FeatureIdentifier getID() const override { return feature->getID(); }; - GeometryCollection getGeometries() const override { return geometry; }; + const GeometryCollection& getGeometries() const override { return geometry; }; friend bool operator < (const SymbolFeature& lhs, const SymbolFeature& rhs) { return lhs.sortKey < rhs.sortKey; |