summaryrefslogtreecommitdiff
path: root/platform/osx/src/MGLMapView.mm
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-04-16 23:29:40 -0700
committerMinh Nguyễn <mxn@1ec5.org>2016-04-16 23:29:40 -0700
commit943c09f1c74123fff480f9a1de075cd63c42c855 (patch)
treed1652d754ece6a1c870a6790aa6f1b7828181ce3 /platform/osx/src/MGLMapView.mm
parent6da746ac685f5f37b1b0b19e7085b4357482761b (diff)
downloadqtlocation-mapboxgl-943c09f1c74123fff480f9a1de075cd63c42c855.tar.gz
[ios, osx] Took advantage of C99
Now that #4641 has removed the prohibition against C99 extensions, this change removes many pragma statements that suppress warnings about variadic macros and designated initializers. Designated initializers and Elvis operators have been introduced wherever appropriate.
Diffstat (limited to 'platform/osx/src/MGLMapView.mm')
-rw-r--r--platform/osx/src/MGLMapView.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/osx/src/MGLMapView.mm b/platform/osx/src/MGLMapView.mm
index c982e4fa5d..307820334a 100644
--- a/platform/osx/src/MGLMapView.mm
+++ b/platform/osx/src/MGLMapView.mm
@@ -79,8 +79,8 @@ struct MGLAttribution {
/// URL to open when the attribution button is clicked.
NSString *urlString;
} MGLAttributions[] = {
- { @"Mapbox", @"https://www.mapbox.com/about/maps/" },
- { @"OpenStreetMap", @"http://www.openstreetmap.org/about/" },
+ { .title = @"Mapbox", .urlString = @"https://www.mapbox.com/about/maps/" },
+ { .title = @"OpenStreetMap", .urlString = @"http://www.openstreetmap.org/about/" },
};
/// Unique identifier representing a single annotation in mbgl.