diff options
author | Alan Kinnaman <alankinnaman@cox.net> | 2016-06-14 00:17:08 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-06-14 00:17:08 -0700 |
commit | 1e41c151f6edfba69037c854a5cb7abc18bb55e7 (patch) | |
tree | f10b8ad82c35a400f73a33edb31be1a84a0a2b85 | |
parent | 3f5ea169f5d617455b21467fbd12a812c6aa2972 (diff) | |
download | qtlocation-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`.
-rw-r--r-- | platform/ios/src/MGLMapView.h | 4 |
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 |