diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/style/expression/within.hpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/include/mbgl/style/expression/within.hpp b/include/mbgl/style/expression/within.hpp index 7e4050509d..900e84296f 100644 --- a/include/mbgl/style/expression/within.hpp +++ b/include/mbgl/style/expression/within.hpp @@ -23,18 +23,12 @@ public: void eachChild(const std::function<void(const Expression&)>&) const override {} - bool operator==(const Expression& e) const override { - if (e.getKind() == Kind::Within) { - auto rhs = static_cast<const Within*>(&e); - return geoJSONSource == rhs->geoJSONSource; - } - return false; - } + bool operator==(const Expression& e) const override; - std::vector<optional<Value>> possibleOutputs() const override { return {{true}, {false}}; } + std::vector<optional<Value>> possibleOutputs() const override; mbgl::Value serialize() const override; - std::string getOperator() const override { return "within"; } + std::string getOperator() const override; private: GeoJSON geoJSONSource; |