diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2018-04-05 21:15:07 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2018-04-06 13:47:49 -0700 |
commit | 1af1cbe721ecf7e3abaa6abc519ac357d8371d34 (patch) | |
tree | b89d491fac27c4f168cced766d459f7eaaf344fb | |
parent | f9e32d59ad17fe50a42c8efc60472a2ba88348e8 (diff) | |
download | qtlocation-mapboxgl-1af1cbe721ecf7e3abaa6abc519ac357d8371d34.tar.gz |
[ios, macos] Equate valueForKey: with valueForKeyPath:
-rw-r--r-- | platform/darwin/src/NSExpression+MGLAdditions.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/darwin/src/NSExpression+MGLAdditions.mm b/platform/darwin/src/NSExpression+MGLAdditions.mm index 58b9e2683b..8c82c84c7d 100644 --- a/platform/darwin/src/NSExpression+MGLAdditions.mm +++ b/platform/darwin/src/NSExpression+MGLAdditions.mm @@ -806,7 +806,7 @@ NSArray *MGLSubexpressionsWithJSONObjects(NSArray *objects) { if (op) { NSArray *arguments = self.arguments.mgl_jsonExpressionObject; return [@[op] arrayByAddingObjectsFromArray:arguments]; - } else if ([function isEqualToString:@"valueForKeyPath:"]) { + } else if ([function isEqualToString:@"valueForKey:"] || [function isEqualToString:@"valueForKeyPath:"]) { return @[@"get", self.arguments.firstObject.mgl_jsonExpressionObject, self.operand.mgl_jsonExpressionObject]; } else if ([function isEqualToString:@"average:"]) { NSExpression *sum = [NSExpression expressionForFunction:@"sum:" arguments:self.arguments]; |