Authored by Justin R. Miller

use new-style new instead of alloc/init

@@ -54,7 +54,7 @@ @@ -54,7 +54,7 @@
54 if (!(self = [super init])) 54 if (!(self = [super init]))
55 return nil; 55 return nil;
56 56
57 - shapeLayer = [[CAShapeLayer alloc] init]; 57 + shapeLayer = [CAShapeLayer new];
58 [self addSublayer:shapeLayer]; 58 [self addSublayer:shapeLayer];
59 59
60 mapView = aMapView; 60 mapView = aMapView;
@@ -80,7 +80,7 @@ @@ -80,7 +80,7 @@
80 80
81 // NSLog(@"drawLayer: {{%f,%f},{%f,%f}}", rect.origin.x, rect.origin.y, rect.size.width, rect.size.height); 81 // NSLog(@"drawLayer: {{%f,%f},{%f,%f}}", rect.origin.x, rect.origin.y, rect.size.width, rect.size.height);
82 82
83 - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 83 + NSAutoreleasePool *pool = [NSAutoreleasePool new];
84 84
85 if (self.useSnapshotRenderer) 85 if (self.useSnapshotRenderer)
86 { 86 {
@@ -252,13 +252,13 @@ @@ -252,13 +252,13 @@
252 _clusterMarkerSize = CGSizeMake(100.0, 100.0); 252 _clusterMarkerSize = CGSizeMake(100.0, 100.0);
253 _clusterAreaSize = CGSizeMake(150.0, 150.0); 253 _clusterAreaSize = CGSizeMake(150.0, 150.0);
254 254
255 - _moveDelegateQueue = [[NSOperationQueue alloc] init]; 255 + _moveDelegateQueue = [NSOperationQueue new];
256 [_moveDelegateQueue setMaxConcurrentOperationCount:1]; 256 [_moveDelegateQueue setMaxConcurrentOperationCount:1];
257 257
258 - _zoomDelegateQueue = [[NSOperationQueue alloc] init]; 258 + _zoomDelegateQueue = [NSOperationQueue new];
259 [_zoomDelegateQueue setMaxConcurrentOperationCount:1]; 259 [_zoomDelegateQueue setMaxConcurrentOperationCount:1];
260 260
261 - [self setTileCache:[[[RMTileCache alloc] init] autorelease]]; 261 + [self setTileCache:[[RMTileCache new] autorelease]];
262 262
263 if (backgroundImage) 263 if (backgroundImage)
264 { 264 {
@@ -1687,7 +1687,7 @@ @@ -1687,7 +1687,7 @@
1687 { 1687 {
1688 _currentAnnotation = [anAnnotation retain]; 1688 _currentAnnotation = [anAnnotation retain];
1689 1689
1690 - _currentCallout = [[SMCalloutView alloc] init]; 1690 + _currentCallout = [SMCalloutView new];
1691 1691
1692 _currentCallout.title = anAnnotation.title; 1692 _currentCallout.title = anAnnotation.title;
1693 1693
@@ -2891,7 +2891,7 @@ @@ -2891,7 +2891,7 @@
2891 2891
2892 self.userLocation = [RMUserLocation annotationWithMapView:self coordinate:CLLocationCoordinate2DMake(MAXFLOAT, MAXFLOAT) andTitle:nil]; 2892 self.userLocation = [RMUserLocation annotationWithMapView:self coordinate:CLLocationCoordinate2DMake(MAXFLOAT, MAXFLOAT) andTitle:nil];
2893 2893
2894 - _locationManager = [[CLLocationManager alloc] init]; 2894 + _locationManager = [CLLocationManager new];
2895 _locationManager.headingFilter = 5.0; 2895 _locationManager.headingFilter = 5.0;
2896 _locationManager.delegate = self; 2896 _locationManager.delegate = self;
2897 [_locationManager startUpdatingLocation]; 2897 [_locationManager startUpdatingLocation];
@@ -62,11 +62,11 @@ @@ -62,11 +62,11 @@
62 62
63 mapView = aMapView; 63 mapView = aMapView;
64 64
65 - bezierPath = [[UIBezierPath alloc] init]; 65 + bezierPath = [UIBezierPath new];
66 lineWidth = kDefaultLineWidth; 66 lineWidth = kDefaultLineWidth;
67 ignorePathUpdates = NO; 67 ignorePathUpdates = NO;
68 68
69 - shapeLayer = [[CAShapeLayer alloc] init]; 69 + shapeLayer = [CAShapeLayer new];
70 shapeLayer.rasterizationScale = [[UIScreen mainScreen] scale]; 70 shapeLayer.rasterizationScale = [[UIScreen mainScreen] scale];
71 shapeLayer.lineWidth = lineWidth; 71 shapeLayer.lineWidth = lineWidth;
72 shapeLayer.lineCap = kCALineCapButt; 72 shapeLayer.lineCap = kCALineCapButt;
@@ -59,7 +59,7 @@ @@ -59,7 +59,7 @@
59 if (!(self = [super init])) 59 if (!(self = [super init]))
60 return nil; 60 return nil;
61 61
62 - _tileCaches = [[NSMutableArray alloc] init]; 62 + _tileCaches = [NSMutableArray new];
63 _tileCacheQueue = dispatch_queue_create("routeme.tileCacheQueue", DISPATCH_QUEUE_CONCURRENT); 63 _tileCacheQueue = dispatch_queue_create("routeme.tileCacheQueue", DISPATCH_QUEUE_CONCURRENT);
64 64
65 _memoryCache = nil; 65 _memoryCache = nil;