summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2018-05-02 13:00:17 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2018-05-02 13:44:38 -0700
commit60ac08afae3d3ca0e94ce4f1ce7dfb98c25e2345 (patch)
tree9c165fa971ceb3c18367a952cb7220b9371a6424
parent1c22374eac69fb2f95b3f6a60e6bfed449508af0 (diff)
downloadqtlocation-mapboxgl-60ac08afae3d3ca0e94ce4f1ce7dfb98c25e2345.tar.gz
Fixup
-rw-r--r--platform/darwin/src/MGLOfflinePack.mm12
1 files changed, 6 insertions, 6 deletions
diff --git a/platform/darwin/src/MGLOfflinePack.mm b/platform/darwin/src/MGLOfflinePack.mm
index 5e555d425e..4653021a58 100644
--- a/platform/darwin/src/MGLOfflinePack.mm
+++ b/platform/darwin/src/MGLOfflinePack.mm
@@ -227,22 +227,22 @@ NSError *MGLErrorFromResponseError(mbgl::Response::Error error) {
@end
void MBGLOfflineRegionObserver::statusChanged(mbgl::OfflineRegionStatus status) {
- __weak MBGLOfflinePack *_pack = pack;
+ __weak MGLOfflinePack *weakPack = pack;
dispatch_async(dispatch_get_main_queue(), ^{
- [_pack offlineRegionStatusDidChange:status];
+ [weakPack offlineRegionStatusDidChange:status];
});
}
void MBGLOfflineRegionObserver::responseError(mbgl::Response::Error error) {
- __weak MBGLOfflinePack *_pack = pack;
+ __weak MGLOfflinePack *weakPack = pack;
dispatch_async(dispatch_get_main_queue(), ^{
- [_pack didReceiveError:MGLErrorFromResponseError(error)];
+ [weakPack didReceiveError:MGLErrorFromResponseError(error)];
});
}
void MBGLOfflineRegionObserver::mapboxTileCountLimitExceeded(uint64_t limit) {
- __weak MBGLOfflinePack *_pack = pack;
+ __weak MGLOfflinePack *weakPack = pack;
dispatch_async(dispatch_get_main_queue(), ^{
- [_pack didReceiveMaximumAllowedMapboxTiles:limit];
+ [weakPack didReceiveMaximumAllowedMapboxTiles:limit];
});
}