summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorJesse Bounds <jesse@rebounds.net>2016-12-07 10:47:06 -0800
committerGitHub <noreply@github.com>2016-12-07 10:47:06 -0800
commit497953c34e401fc268b59fd80c34855838873596 (patch)
treef8ffc462f0a6313772535bc1ef97c88c49d93c5c /platform
parent508f020eb5f8665e9cb53fb319440216d134e299 (diff)
downloadqtlocation-mapboxgl-497953c34e401fc268b59fd80c34855838873596.tar.gz
[ios, macos] Fix typo in exception name for style source identifier (#7315)
Diffstat (limited to 'platform')
-rw-r--r--platform/darwin/src/MGLStyle.h2
-rw-r--r--platform/darwin/src/MGLStyle.mm2
-rw-r--r--platform/darwin/test/MGLStyleTests.mm2
3 files changed, 3 insertions, 3 deletions
diff --git a/platform/darwin/src/MGLStyle.h b/platform/darwin/src/MGLStyle.h
index 3fe8fb9492..266715ec88 100644
--- a/platform/darwin/src/MGLStyle.h
+++ b/platform/darwin/src/MGLStyle.h
@@ -203,7 +203,7 @@ static const NSInteger MGLStyleDefaultVersion = 9;
@note Adding the same source instance more than once will result in a
`MGLRedundantSourceException`. Reusing the same source identifier, even with
different source instances, will result in a
- `MGLRedundantSourceIdentiferException`.
+ `MGLRedundantSourceIdentifierException`.
@param source The source to add to the current style.
*/
diff --git a/platform/darwin/src/MGLStyle.mm b/platform/darwin/src/MGLStyle.mm
index 36c8787bfb..a6de4e798d 100644
--- a/platform/darwin/src/MGLStyle.mm
+++ b/platform/darwin/src/MGLStyle.mm
@@ -191,7 +191,7 @@ static NSURL *MGLStyleURL_emerald;
try {
[source addToMapView:self.mapView];
} catch (std::runtime_error & err) {
- [NSException raise:@"MGLRedundantSourceIdentiferException" format:@"%s", err.what()];
+ [NSException raise:@"MGLRedundantSourceIdentifierException" format:@"%s", err.what()];
}
}
diff --git a/platform/darwin/test/MGLStyleTests.mm b/platform/darwin/test/MGLStyleTests.mm
index bc1e6078f0..ae55951fd9 100644
--- a/platform/darwin/test/MGLStyleTests.mm
+++ b/platform/darwin/test/MGLStyleTests.mm
@@ -139,7 +139,7 @@
MGLVectorSource *source2 = [[MGLVectorSource alloc] initWithIdentifier:@"my-source" URL:[NSURL URLWithString:@"mapbox://mapbox.mapbox-terrain-v2"]];
[self.style addSource: source1];
- XCTAssertThrowsSpecificNamed([self.style addSource: source2], NSException, @"MGLRedundantSourceIdentiferException");
+ XCTAssertThrowsSpecificNamed([self.style addSource: source2], NSException, @"MGLRedundantSourceIdentifierException");
}
- (void)testAddingLayersTwice {