summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorAlan Kinnaman <alankinnaman@cox.net>2016-06-14 00:17:08 -0700
committerMinh Nguyễn <mxn@1ec5.org>2016-06-14 00:17:08 -0700
commit1e41c151f6edfba69037c854a5cb7abc18bb55e7 (patch)
treef10b8ad82c35a400f73a33edb31be1a84a0a2b85 /platform
parent3f5ea169f5d617455b21467fbd12a812c6aa2972 (diff)
downloadqtlocation-mapboxgl-1e41c151f6edfba69037c854a5cb7abc18bb55e7.tar.gz
Suppress warning when dequeueing subclasses (#5244)
When using a subclass of `MGLAnnotationView` or `MGLAnnotationImage`, the following warning occurs: `Incompatible pointer types initializing 'MyClassName *' with an expression of type 'MGLAnnotationView * _Nullable'` This change eliminates the warning and matches Apple's implementation of `UITableViewCell`.
Diffstat (limited to 'platform')
-rw-r--r--platform/ios/src/MGLMapView.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/ios/src/MGLMapView.h b/platform/ios/src/MGLMapView.h
index 09142c4093..1319228c1a 100644
--- a/platform/ios/src/MGLMapView.h
+++ b/platform/ios/src/MGLMapView.h
@@ -965,7 +965,7 @@ IB_DESIGNABLE
@return An annotation image object with the given identifier, or `nil` if no
such object exists in the reuse queue.
*/
-- (nullable MGLAnnotationImage *)dequeueReusableAnnotationImageWithIdentifier:(NSString *)identifier;
+- (nullable __kindof MGLAnnotationImage *)dequeueReusableAnnotationImageWithIdentifier:(NSString *)identifier;
/**
Returns a reusable annotation view object associated with its identifier.
@@ -981,7 +981,7 @@ IB_DESIGNABLE
@return An annotation view object with the given identifier, or `nil` if no
such object exists in the reuse queue.
*/
-- (nullable MGLAnnotationView *)dequeueReusableAnnotationViewWithIdentifier:(NSString *)identifier;
+- (nullable __kindof MGLAnnotationView *)dequeueReusableAnnotationViewWithIdentifier:(NSString *)identifier;
#pragma mark Managing Annotation Selections