diff options
Diffstat (limited to 'src/mbgl/style/expression/dsl.cpp')
-rw-r--r-- | src/mbgl/style/expression/dsl.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mbgl/style/expression/dsl.cpp b/src/mbgl/style/expression/dsl.cpp index 6405149fe9..c8d98e61a4 100644 --- a/src/mbgl/style/expression/dsl.cpp +++ b/src/mbgl/style/expression/dsl.cpp @@ -237,9 +237,8 @@ std::unique_ptr<Expression> format(const char* value) { } std::unique_ptr<Expression> format(std::unique_ptr<Expression> input) { - std::vector<FormatExpressionSection> sections; - sections.emplace_back(std::move(input), nullopt, nullopt, nullopt); - return std::make_unique<FormatExpression>(sections); + std::vector<FormatExpressionSection> sections{FormatExpressionSection(std::move(input))}; + return std::make_unique<FormatExpression>(std::move(sections)); } std::unique_ptr<Expression> image(const char* value) { |