summaryrefslogtreecommitdiff
path: root/src/mbgl/style/parser.hpp
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2018-11-19 15:30:19 +0200
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2018-11-19 17:16:54 +0200
commit8ac87ec5cb2374d212a31942ca19ce395704eb69 (patch)
tree9ec08c29e1a4f5e779f9c69ba7d96411f1c64f1d /src/mbgl/style/parser.hpp
parent9592e61288d071a7927c7cf99e7e5f3f97711642 (diff)
downloadqtlocation-mapboxgl-8ac87ec5cb2374d212a31942ca19ce395704eb69.tar.gz
Refactor util::fontStacks()
So that it does not downcast `Layer::Impl` instances. Also, an unneeded `std::vector` construction was removed from `Parser::fontStacks()`.
Diffstat (limited to 'src/mbgl/style/parser.hpp')
-rw-r--r--src/mbgl/style/parser.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/style/parser.hpp b/src/mbgl/style/parser.hpp
index ec7be038fb..f992519083 100644
--- a/src/mbgl/style/parser.hpp
+++ b/src/mbgl/style/parser.hpp
@@ -43,7 +43,7 @@ public:
double pitch = 0;
// Statically evaluate layer properties to determine what font stacks are used.
- std::vector<FontStack> fontStacks() const;
+ std::set<FontStack> fontStacks() const;
private:
void parseTransition(const JSValue&);