summaryrefslogtreecommitdiff
path: root/expression-test
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-10-14 15:15:54 +0200
committerKonstantin Käfer <mail@kkaefer.com>2019-10-14 18:46:12 +0200
commit9cac122c5cf6404b9c8cdb52f130f7386a273241 (patch)
tree35c94fa8e23c030aa064a5e696f6c5cc9e545b10 /expression-test
parent8206ce0e024a082f6979ce66f65909cb451e9d71 (diff)
downloadqtlocation-mapboxgl-9cac122c5cf6404b9c8cdb52f130f7386a273241.tar.gz
[core] map image type to string until we have a dedicated implementation
Diffstat (limited to 'expression-test')
-rw-r--r--expression-test/expression_test_parser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/expression-test/expression_test_parser.cpp b/expression-test/expression_test_parser.cpp
index 546a96b3e0..3b40eeb3b0 100644
--- a/expression-test/expression_test_parser.cpp
+++ b/expression-test/expression_test_parser.cpp
@@ -104,7 +104,8 @@ optional<Value> toValue(const JSValue& jsvalue) {
style::expression::type::Type stringToType(const std::string& type) {
using namespace style::expression;
- if (type == "string"s || type == "number-format"s) {
+ if (type == "string"s || type == "number-format"s ||
+ type == "image"s) { // TODO: replace once we implement image expressions
return type::String;
} else if (type == "number"s) {
return type::Number;