diff options
author | Jesse Bounds <jesse@rebounds.net> | 2017-02-16 19:46:00 -0800 |
---|---|---|
committer | Jesse Bounds <jesse@rebounds.net> | 2017-03-03 09:10:31 -0800 |
commit | d25e2c772daeb44f3933a0114f41c86b9679e8c1 (patch) | |
tree | 8363870624166056be3c6df48002ea1157ad1a4d /platform/darwin/src/MGLStyleValue.mm | |
parent | f1e3c32f7ea9e5a1d80b8ddd136751ca131c3eb5 (diff) | |
download | qtlocation-mapboxgl-d25e2c772daeb44f3933a0114f41c86b9679e8c1.tar.gz |
[ios, macos] Rename MGLStyleConstantValue to MGLConstantStyleValue
Diffstat (limited to 'platform/darwin/src/MGLStyleValue.mm')
-rw-r--r-- | platform/darwin/src/MGLStyleValue.mm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/darwin/src/MGLStyleValue.mm b/platform/darwin/src/MGLStyleValue.mm index 020dc27d6a..33b6babadf 100644 --- a/platform/darwin/src/MGLStyleValue.mm +++ b/platform/darwin/src/MGLStyleValue.mm @@ -6,7 +6,7 @@ const MGLStyleFunctionOption MGLStyleFunctionOptionDefaultValue = @"MGLStyleFunc @implementation MGLStyleValue + (instancetype)valueWithRawValue:(id)rawValue { - return [MGLStyleConstantValue valueWithRawValue:rawValue]; + return [MGLConstantStyleValue valueWithRawValue:rawValue]; } + (instancetype)valueWithInterpolationBase:(CGFloat)interpolationBase stops:(NSDictionary *)stops { @@ -31,7 +31,7 @@ const MGLStyleFunctionOption MGLStyleFunctionOptionDefaultValue = @"MGLStyleFunc @end -@implementation MGLStyleConstantValue +@implementation MGLConstantStyleValue + (instancetype)valueWithRawValue:(id)rawValue { return [[self alloc] initWithRawValue:rawValue]; @@ -52,7 +52,7 @@ const MGLStyleFunctionOption MGLStyleFunctionOptionDefaultValue = @"MGLStyleFunc return [self.rawValue debugDescription]; } -- (BOOL)isEqual:(MGLStyleConstantValue *)other { +- (BOOL)isEqual:(MGLConstantStyleValue *)other { return [other isKindOfClass:[self class]] && [other.rawValue isEqual:self.rawValue]; } |