summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLMapView.h
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:44 -0700
commit19c34fe1f05c6a7af1d7c0492a52454934223857 (patch)
tree49d93d9d210c2faf6fba7d70661ced6716bda0d2 /platform/ios/src/MGLMapView.h
parent383df9dd21e518d3894072390a459a80487348ef (diff)
downloadqtlocation-mapboxgl-19c34fe1f05c6a7af1d7c0492a52454934223857.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`. Cherry-picked from 1e41c151f6edfba69037c854a5cb7abc18bb55e7.
Diffstat (limited to 'platform/ios/src/MGLMapView.h')
-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