diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2018-07-20 15:40:47 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2018-07-23 21:59:20 +0300 |
commit | d13ebedadbd6ef9d6308c3399d0d88b140de421d (patch) | |
tree | 9fbcd5274b408ee3a194560b6c5d4760aa118fb2 /include/mbgl/style/expression/case.hpp | |
parent | 3821f74079f88b6a5b3b0ea210fe529132a3494f (diff) | |
download | qtlocation-mapboxgl-upstream/expressions-rtti-refactor.tar.gz |
[core] Replace expressions RTTI with enums + static castupstream/expressions-rtti-refactor
Diffstat (limited to 'include/mbgl/style/expression/case.hpp')
-rw-r--r-- | include/mbgl/style/expression/case.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mbgl/style/expression/case.hpp b/include/mbgl/style/expression/case.hpp index 667ca53712..02dc3bc4c2 100644 --- a/include/mbgl/style/expression/case.hpp +++ b/include/mbgl/style/expression/case.hpp @@ -16,7 +16,7 @@ public: using Branch = std::pair<std::unique_ptr<Expression>, std::unique_ptr<Expression>>; Case(type::Type type_, std::vector<Branch> branches_, std::unique_ptr<Expression> otherwise_) - : Expression(type_), branches(std::move(branches_)), otherwise(std::move(otherwise_)) { + : Expression(Kind::Case, type_), branches(std::move(branches_)), otherwise(std::move(otherwise_)) { } static ParseResult parse(const mbgl::style::conversion::Convertible& value, ParsingContext& ctx); |