diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2017-04-04 15:01:39 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2017-04-13 10:33:18 -0700 |
commit | 98d005792b68d0b299f123c1d31e50c72ba91ba8 (patch) | |
tree | b1ac869a0e8beb82f0f148f23679b0a1137739ed /platform/darwin/src/MGLVectorSource_Private.h | |
parent | 3a342c709c1784d23c66c0e1b7f9963c588d7653 (diff) | |
download | qtlocation-mapboxgl-98d005792b68d0b299f123c1d31e50c72ba91ba8.tar.gz |
[darwin] Simplify MGLSource initialization and pointer management
Introduce `-[MGLSource initWithPendingSource:]`, allowing the base class to track the owned `_pendingSource` pointer and implement `-addToMapView:` and `-removeFromMapView:` without any casts.
Diffstat (limited to 'platform/darwin/src/MGLVectorSource_Private.h')
-rw-r--r-- | platform/darwin/src/MGLVectorSource_Private.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/platform/darwin/src/MGLVectorSource_Private.h b/platform/darwin/src/MGLVectorSource_Private.h index 12fcd82012..335743173e 100644 --- a/platform/darwin/src/MGLVectorSource_Private.h +++ b/platform/darwin/src/MGLVectorSource_Private.h @@ -2,16 +2,7 @@ NS_ASSUME_NONNULL_BEGIN -namespace mbgl { - namespace style { - class VectorSource; - } -} - @interface MGLVectorSource (Private) - -- (instancetype)initWithRawSource:(mbgl::style::VectorSource *)rawSource; - @end NS_ASSUME_NONNULL_END |