summaryrefslogtreecommitdiff
path: root/include/mbgl/style/expression
diff options
context:
space:
mode:
authorAnand Thakker <anandthakker@users.noreply.github.com>2018-04-09 17:59:18 -0400
committerGitHub <noreply@github.com>2018-04-09 17:59:18 -0400
commit8d26f7409106c94f37689d206f9a68aac57572a4 (patch)
treefa1dea3966bc88b76c4877663160b354ac5a01ab /include/mbgl/style/expression
parentc1dabbde8d58143b1f7f64eddeb75c06ab417d32 (diff)
downloadqtlocation-mapboxgl-8d26f7409106c94f37689d206f9a68aac57572a4.tar.gz
Fix style parsing bug for constant expressions (#11606)
* Fix style parsing bug for constant expressions Closes #10849 * Ignore tests for unported GL JS change Refs https://github.com/mapbox/mapbox-gl-js/pull/6429 * Fuller fix * Update mapbox-gl-js
Diffstat (limited to 'include/mbgl/style/expression')
-rw-r--r--include/mbgl/style/expression/let.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mbgl/style/expression/let.hpp b/include/mbgl/style/expression/let.hpp
index 75d2adda62..d0210d8bba 100644
--- a/include/mbgl/style/expression/let.hpp
+++ b/include/mbgl/style/expression/let.hpp
@@ -70,6 +70,9 @@ public:
mbgl::Value serialize() const override;
std::string getOperator() const override { return "var"; }
+
+ const std::shared_ptr<Expression>& getBoundExpression() const { return value; }
+
private:
std::string name;
std::shared_ptr<Expression> value;