summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Loer <chris.loer@gmail.com>2018-05-29 15:26:12 -0400
committerChris Loer <chris.loer@mapbox.com>2018-06-04 11:32:20 -0700
commit8fdcd76d6ef792dc5d44000d0020835de7613e09 (patch)
tree7c75c8ee89236dacf4954d7793a88a3cb06995e7
parentdf4d8bab310d7c5e96e237ff6511178e11b36830 (diff)
downloadqtlocation-mapboxgl-8fdcd76d6ef792dc5d44000d0020835de7613e09.tar.gz
[ios, macos] Use NSCAssert instead of assert.
-rw-r--r--platform/darwin/src/MGLMapSnapshotter.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLMapSnapshotter.mm b/platform/darwin/src/MGLMapSnapshotter.mm
index a63fbfb0a2..2a2bef8fb8 100644
--- a/platform/darwin/src/MGLMapSnapshotter.mm
+++ b/platform/darwin/src/MGLMapSnapshotter.mm
@@ -126,7 +126,7 @@ const CGFloat MGLSnapshotterMinimumPixelSize = 64;
_snapshotCallback = std::make_unique<mbgl::Actor<mbgl::MapSnapshotter::Callback>>(*mbgl::Scheduler::GetCurrent(), [=](std::exception_ptr mbglError, mbgl::PremultipliedImage image, mbgl::MapSnapshotter::Attributions attributions, mbgl::MapSnapshotter::PointForFn pointForFn) {
__typeof__(self) strongSelf = weakSelf;
// If self had died, _snapshotCallback would have been destroyed and this block would not be executed
- assert(strongSelf);
+ NSCAssert(strongSelf, @"Snapshot callback executed after being destroyed.");
strongSelf.loading = false;