diff options
author | Jesse Bounds <jesse@rebounds.net> | 2016-11-15 13:39:09 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-15 13:39:09 -0800 |
commit | 068a89c2f8f1fe8962113c75e782cd7e204ca37a (patch) | |
tree | b32b7526b57dc396c9d16ad74f52bfd7735d7355 /platform/darwin | |
parent | 5a982f9ccc15f166c7dfc81c98f30c2113f8896e (diff) | |
download | qtlocation-mapboxgl-068a89c2f8f1fe8962113c75e782cd7e204ca37a.tar.gz |
[ios, macos] Use NSNumber in exception strings (#7083)ios-v3.4.0-beta.3
Diffstat (limited to 'platform/darwin')
-rw-r--r-- | platform/darwin/src/MGLMultiPoint.mm | 8 | ||||
-rw-r--r-- | platform/darwin/src/MGLPointCollection.mm | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/platform/darwin/src/MGLMultiPoint.mm b/platform/darwin/src/MGLMultiPoint.mm index 66ce27614a..f086bcbc39 100644 --- a/platform/darwin/src/MGLMultiPoint.mm +++ b/platform/darwin/src/MGLMultiPoint.mm @@ -58,8 +58,8 @@ mbgl::Color MGLColorObjectFromCGColorRef(CGColorRef cgColor) if (range.location + range.length > [self pointCount]) { [NSException raise:NSRangeException - format:@"Invalid coordinate range %@ extends beyond current coordinate count of %zu", - NSStringFromRange(range), [self pointCount]]; + format:@"Invalid coordinate range %@ extends beyond current coordinate count of %@", + NSStringFromRange(range), @([self pointCount])]; } std::copy(_coordinates.begin() + range.location, _coordinates.begin() + NSMaxRange(range), coords); @@ -83,8 +83,8 @@ mbgl::Color MGLColorObjectFromCGColorRef(CGColorRef cgColor) if (NSMaxRange(range) > _coordinates.size()) { [NSException raise:NSRangeException - format:@"Invalid range %@ for existing coordinate count %zu", - NSStringFromRange(range), [self pointCount]]; + format:@"Invalid range %@ for existing coordinate count %@", + NSStringFromRange(range), @([self pointCount])]; } [self willChangeValueForKey:@"coordinates"]; diff --git a/platform/darwin/src/MGLPointCollection.mm b/platform/darwin/src/MGLPointCollection.mm index adf3cc3d40..21982ca7bb 100644 --- a/platform/darwin/src/MGLPointCollection.mm +++ b/platform/darwin/src/MGLPointCollection.mm @@ -54,8 +54,8 @@ NS_ASSUME_NONNULL_BEGIN if (range.location + range.length > [self pointCount]) { [NSException raise:NSRangeException - format:@"Invalid coordinate range %@ extends beyond current coordinate count of %zu", - NSStringFromRange(range), [self pointCount]]; + format:@"Invalid coordinate range %@ extends beyond current coordinate count of %@", + NSStringFromRange(range), @([self pointCount])]; } std::copy(_coordinates.begin() + range.location, _coordinates.begin() + NSMaxRange(range), coords); |