From e0a523dee744a9944fb7da2f3eb7d9744ff63c5f Mon Sep 17 00:00:00 2001 From: lpotherat Date: Mon, 30 Jan 2012 11:34:00 +0100 Subject: [PATCH] Replace NSArray alloc by mutableCopy to avoid type mismatch warning. --- Classes/NVPolylineAnnotation.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/NVPolylineAnnotation.m b/Classes/NVPolylineAnnotation.m index e6099cf..d936b3a 100644 --- a/Classes/NVPolylineAnnotation.m +++ b/Classes/NVPolylineAnnotation.m @@ -16,7 +16,7 @@ @implementation NVPolylineAnnotation -(id) initWithPoints:(NSArray*) points mapView:(MKMapView *)mapView { self = [super init]; - _points = [[NSArray alloc] initWithArray:points]; + _points = [points mutableCopy]; _mapView = [mapView retain]; return self;