Authored by Justin R. Miller

use new-style new instead of alloc/init

... ... @@ -54,7 +54,7 @@
if (!(self = [super init]))
return nil;
shapeLayer = [[CAShapeLayer alloc] init];
shapeLayer = [CAShapeLayer new];
[self addSublayer:shapeLayer];
mapView = aMapView;
... ...
... ... @@ -80,7 +80,7 @@
// NSLog(@"drawLayer: {{%f,%f},{%f,%f}}", rect.origin.x, rect.origin.y, rect.size.width, rect.size.height);
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSAutoreleasePool *pool = [NSAutoreleasePool new];
if (self.useSnapshotRenderer)
{
... ...
... ... @@ -252,13 +252,13 @@
_clusterMarkerSize = CGSizeMake(100.0, 100.0);
_clusterAreaSize = CGSizeMake(150.0, 150.0);
_moveDelegateQueue = [[NSOperationQueue alloc] init];
_moveDelegateQueue = [NSOperationQueue new];
[_moveDelegateQueue setMaxConcurrentOperationCount:1];
_zoomDelegateQueue = [[NSOperationQueue alloc] init];
_zoomDelegateQueue = [NSOperationQueue new];
[_zoomDelegateQueue setMaxConcurrentOperationCount:1];
[self setTileCache:[[[RMTileCache alloc] init] autorelease]];
[self setTileCache:[[RMTileCache new] autorelease]];
if (backgroundImage)
{
... ... @@ -1687,7 +1687,7 @@
{
_currentAnnotation = [anAnnotation retain];
_currentCallout = [[SMCalloutView alloc] init];
_currentCallout = [SMCalloutView new];
_currentCallout.title = anAnnotation.title;
... ... @@ -2891,7 +2891,7 @@
self.userLocation = [RMUserLocation annotationWithMapView:self coordinate:CLLocationCoordinate2DMake(MAXFLOAT, MAXFLOAT) andTitle:nil];
_locationManager = [[CLLocationManager alloc] init];
_locationManager = [CLLocationManager new];
_locationManager.headingFilter = 5.0;
_locationManager.delegate = self;
[_locationManager startUpdatingLocation];
... ...
... ... @@ -62,11 +62,11 @@
mapView = aMapView;
bezierPath = [[UIBezierPath alloc] init];
bezierPath = [UIBezierPath new];
lineWidth = kDefaultLineWidth;
ignorePathUpdates = NO;
shapeLayer = [[CAShapeLayer alloc] init];
shapeLayer = [CAShapeLayer new];
shapeLayer.rasterizationScale = [[UIScreen mainScreen] scale];
shapeLayer.lineWidth = lineWidth;
shapeLayer.lineCap = kCALineCapButt;
... ...
... ... @@ -59,7 +59,7 @@
if (!(self = [super init]))
return nil;
_tileCaches = [[NSMutableArray alloc] init];
_tileCaches = [NSMutableArray new];
_tileCacheQueue = dispatch_queue_create("routeme.tileCacheQueue", DISPATCH_QUEUE_CONCURRENT);
_memoryCache = nil;
... ...