diff options
author | Jesse Bounds <jesse@rebounds.net> | 2017-05-17 14:52:19 -0700 |
---|---|---|
committer | Jesse Bounds <jesse@rebounds.net> | 2017-05-19 08:06:24 -0700 |
commit | 7612e23dff48453abd00434b4fe8ba6645235875 (patch) | |
tree | 6884186d9568b402b6c734e86fc5482f516ea4dd /platform | |
parent | 3b109c8540ebd4da943e81beff5d9ae1483500c3 (diff) | |
download | qtlocation-mapboxgl-7612e23dff48453abd00434b4fe8ba6645235875.tar.gz |
[ios, macos] Change == to = in style function initializers
Diffstat (limited to 'platform')
-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 33b6babadf..4dd6b550d8 100644 --- a/platform/darwin/src/MGLStyleValue.mm +++ b/platform/darwin/src/MGLStyleValue.mm @@ -128,7 +128,7 @@ const MGLStyleFunctionOption MGLStyleFunctionOptionDefaultValue = @"MGLStyleFunc return {}; } - if (self == [super init]) { + if (self = [super init]) { self.interpolationMode = interpolationMode; self.stops = stops; @@ -181,7 +181,7 @@ const MGLStyleFunctionOption MGLStyleFunctionOptionDefaultValue = @"MGLStyleFunc } - (instancetype)initWithInterpolationMode:(MGLInterpolationMode)interpolationMode stops:(NSDictionary *)stops attributeName:(NSString *)attributeName options:(NSDictionary *)options { - if (self == [super init]) { + if (self = [super init]) { self.interpolationMode = interpolationMode; self.stops = stops; _attributeName = attributeName; @@ -251,7 +251,7 @@ const MGLStyleFunctionOption MGLStyleFunctionOptionDefaultValue = @"MGLStyleFunc } - (instancetype)initWithInterpolationMode:(MGLInterpolationMode)interpolationMode stops:(NSDictionary *)stops attributeName:(NSString *)attributeName options:(NSDictionary *)options { - if (self == [super init]) { + if (self = [super init]) { self.interpolationMode = interpolationMode; self.stops = stops; _attributeName = attributeName; |