summaryrefslogtreecommitdiff
path: root/include/mbgl/style/expression/in.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/style/expression/in.hpp')
-rw-r--r--include/mbgl/style/expression/in.hpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/mbgl/style/expression/in.hpp b/include/mbgl/style/expression/in.hpp
index ab8e2e9ff2..6bd57e2833 100644
--- a/include/mbgl/style/expression/in.hpp
+++ b/include/mbgl/style/expression/in.hpp
@@ -8,7 +8,7 @@ namespace mbgl {
namespace style {
namespace expression {
-class In : public Expression {
+class In final : public Expression {
public:
In(std::unique_ptr<Expression> needle_, std::unique_ptr<Expression> haystack_)
: Expression(Kind::In, type::Boolean), needle(std::move(needle_)), haystack(std::move(haystack_)) {}
@@ -26,16 +26,13 @@ public:
return false;
}
- std::vector<optional<Value>> possibleOutputs() const override { return {nullopt}; }
+ std::vector<optional<Value>> possibleOutputs() const override { return {{true}, {false}}; }
std::string getOperator() const override { return "in"; }
private:
std::unique_ptr<Expression> needle;
std::unique_ptr<Expression> haystack;
- static bool isComparableType(type::Type type);
- static bool isComparableRuntimeValue(type::Type type);
- static bool isSearchableRuntimeValue(type::Type type);
};
} // namespace expression