diff options
Diffstat (limited to 'src/mbgl/style/parser.cpp')
-rw-r--r-- | src/mbgl/style/parser.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mbgl/style/parser.cpp b/src/mbgl/style/parser.cpp index 77cf23bad0..ae298bd915 100644 --- a/src/mbgl/style/parser.cpp +++ b/src/mbgl/style/parser.cpp @@ -267,14 +267,13 @@ void Parser::parseLayer(const std::string& id, const JSValue& value, std::unique } } -std::vector<FontStack> Parser::fontStacks() const { +std::set<FontStack> Parser::fontStacks() const { std::vector<Immutable<Layer::Impl>> impls; impls.reserve(layers.size()); for (const auto& layer : layers) { impls.emplace_back(layer->baseImpl); } - std::set<FontStack> result = mbgl::fontStacks(impls); - return std::vector<FontStack>(result.begin(), result.end()); + return mbgl::fontStacks(impls); } } // namespace style |