From f210bbbb6c9532c5bdcf176e191bef9a0a9858c7 Mon Sep 17 00:00:00 2001 From: Ander Conselvan de Oliveira Date: Wed, 8 May 2019 14:00:48 +0300 Subject: [core] Don't use optional unique_ptr in function coversion code Since unique_ptr is already nullable there is no need to wrap it in an optional<>. --- include/mbgl/style/expression/dsl.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/mbgl/style/expression/dsl.hpp b/include/mbgl/style/expression/dsl.hpp index dc0f1ab90f..bcab999ab2 100644 --- a/include/mbgl/style/expression/dsl.hpp +++ b/include/mbgl/style/expression/dsl.hpp @@ -32,20 +32,20 @@ std::unique_ptr literal(std::initializer_list value); std::unique_ptr literal(std::initializer_list value); std::unique_ptr assertion(type::Type, std::unique_ptr, - optional> def = {}); + std::unique_ptr def = nullptr); std::unique_ptr number(std::unique_ptr, - optional> def = {}); + std::unique_ptr def = nullptr); std::unique_ptr string(std::unique_ptr, - optional> def = {}); + std::unique_ptr def = nullptr); std::unique_ptr boolean(std::unique_ptr, - optional> def = {}); + std::unique_ptr def = nullptr); std::unique_ptr toColor(std::unique_ptr, - optional> def = {}); + std::unique_ptr def = nullptr); std::unique_ptr toString(std::unique_ptr, - optional> def = {}); + std::unique_ptr def = nullptr); std::unique_ptr toFormatted(std::unique_ptr, - optional> def = {}); + std::unique_ptr def = nullptr); std::unique_ptr get(const char* value); std::unique_ptr get(std::unique_ptr); -- cgit v1.2.1