summaryrefslogtreecommitdiff
path: root/src/mbgl/style/expression/coercion.cpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2018-06-29 14:32:39 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2018-06-29 15:38:11 -0700
commit647959a85327660a8d0b35da0b8a247820a36c15 (patch)
tree75e3b323b96d6bd36b7a351cb04b6f3a565399e4 /src/mbgl/style/expression/coercion.cpp
parent25ac89e018a27fc689f742429c78ba492682b0a0 (diff)
downloadqtlocation-mapboxgl-647959a85327660a8d0b35da0b8a247820a36c15.tar.gz
[core] Add assertions to expression constructors
Diffstat (limited to 'src/mbgl/style/expression/coercion.cpp')
-rw-r--r--src/mbgl/style/expression/coercion.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mbgl/style/expression/coercion.cpp b/src/mbgl/style/expression/coercion.cpp
index 0166d144e0..11172a3668 100644
--- a/src/mbgl/style/expression/coercion.cpp
+++ b/src/mbgl/style/expression/coercion.cpp
@@ -71,6 +71,7 @@ Coercion::Coercion(type::Type type_, std::vector<std::unique_ptr<Expression>> in
Expression(std::move(type_)),
inputs(std::move(inputs_))
{
+ assert(!inputs.empty());
type::Type t = getType();
if (t.is<type::NumberType>()) {
coerceSingleValue = toNumber;