From b8466946e5eac5a4359206c19fe6e659ae9cf6c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguy=E1=BB=85n?= Date: Thu, 15 Dec 2016 21:14:17 -0800 Subject: [ios, macos] Corrected return type of MGLShape factory method --- platform/darwin/src/MGLShape.h | 2 +- platform/darwin/src/MGLShape.mm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'platform') diff --git a/platform/darwin/src/MGLShape.h b/platform/darwin/src/MGLShape.h index e7dbe90242..af815da0e9 100644 --- a/platform/darwin/src/MGLShape.h +++ b/platform/darwin/src/MGLShape.h @@ -33,7 +33,7 @@ NS_ASSUME_NONNULL_BEGIN not be parsed as valid GeoJSON source code. If `nil`, `outError` contains an `NSError` object describing the problem. */ -+ (nullable instancetype)shapeWithData:(NSData *)data encoding:(NSStringEncoding)encoding error:(NSError * _Nullable *)outError; ++ (nullable MGLShape *)shapeWithData:(NSData *)data encoding:(NSStringEncoding)encoding error:(NSError * _Nullable *)outError; #pragma mark Accessing the Shape Attributes diff --git a/platform/darwin/src/MGLShape.mm b/platform/darwin/src/MGLShape.mm index 93a3b37e93..889ef8b3d7 100644 --- a/platform/darwin/src/MGLShape.mm +++ b/platform/darwin/src/MGLShape.mm @@ -4,7 +4,7 @@ @implementation MGLShape -+ (nullable instancetype)shapeWithData:(NSData *)data encoding:(NSStringEncoding)encoding error:(NSError * _Nullable *)outError { ++ (nullable MGLShape *)shapeWithData:(NSData *)data encoding:(NSStringEncoding)encoding error:(NSError * _Nullable *)outError { NSString *string = [[NSString alloc] initWithData:data encoding:encoding]; if (!string) { if (outError) { -- cgit v1.2.1