diff options
Diffstat (limited to 'src/mbgl/style/conversion/function.cpp')
-rw-r--r-- | src/mbgl/style/conversion/function.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mbgl/style/conversion/function.cpp b/src/mbgl/style/conversion/function.cpp index 4b3b8f6c6a..e3beb44d22 100644 --- a/src/mbgl/style/conversion/function.cpp +++ b/src/mbgl/style/conversion/function.cpp @@ -42,9 +42,8 @@ bool hasTokens(const std::string& source) { std::unique_ptr<Expression> convertTokenStringToFormatExpression(const std::string& source) { auto textExpression = convertTokenStringToExpression(source); - std::vector<FormatExpressionSection> sections; - sections.emplace_back(std::move(textExpression), nullopt, nullopt, nullopt); - return std::make_unique<FormatExpression>(sections); + std::vector<FormatExpressionSection> sections{FormatExpressionSection(std::move(textExpression))}; + return std::make_unique<FormatExpression>(std::move(sections)); } std::unique_ptr<Expression> convertTokenStringToImageExpression(const std::string& source) { |