diff options
author | Fredrik Karlsson <bjorn.fredrik.karlsson@gmail.com> | 2016-12-07 12:11:19 +0100 |
---|---|---|
committer | Fredrik Karlsson <bjorn.fredrik.karlsson@gmail.com> | 2016-12-07 12:52:59 +0100 |
commit | 3b7e98d0b126fdc97ba0ae21412ac35508ccf5b0 (patch) | |
tree | 931261d26ab276d6348f70a94027dcd5e5bd9272 | |
parent | 178130267e3d79e53506549fb43c4fb2ef18e6e0 (diff) | |
download | qtlocation-mapboxgl-3b7e98d0b126fdc97ba0ae21412ac35508ccf5b0.tar.gz |
[ios, macos] fixed compiler warnings
-rw-r--r-- | platform/darwin/test/MGLGeoJSONSourceTests.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/darwin/test/MGLGeoJSONSourceTests.mm b/platform/darwin/test/MGLGeoJSONSourceTests.mm index 1b6da95a69..47f12828eb 100644 --- a/platform/darwin/test/MGLGeoJSONSourceTests.mm +++ b/platform/darwin/test/MGLGeoJSONSourceTests.mm @@ -47,7 +47,7 @@ NSData *data = [geoJSON dataUsingEncoding:NSUTF8StringEncoding]; MGLGeoJSONSource *source = [[MGLGeoJSONSource alloc] initWithIdentifier:@"source-id" geoJSONData:data options:nil]; - MGLShapeCollection *collection = source.shape; + MGLShapeCollection *collection = (MGLShapeCollection *)source.shape; XCTAssertNotNil(collection); XCTAssertEqual(collection.shapes.count, 1); XCTAssertTrue([collection.shapes.firstObject isMemberOfClass:[MGLPolylineFeature class]]); @@ -245,7 +245,7 @@ MGLGeoJSONSource *source = [[MGLGeoJSONSource alloc] initWithIdentifier:@"source-id" shape:shapeCollectionFeature_1 options:nil]; - MGLShapeCollectionFeature *shape = source.shape; + MGLShapeCollectionFeature *shape = (MGLShapeCollectionFeature *)source.shape; XCTAssertNotNil(shape); XCTAssert(shape.shapes.count == 7, @"Shape collection should contain 7 shapes"); |