X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=iphone%2FClasses%2FShowMapAction.m;h=f3817a23f8cae1ea84cc149b98167face0ae0e80;hb=3dbfa07bdfe9034341f49f21f6f0f95c5fb4bd8c;hp=7ec13eb7743142d06f4c928d92886830c81dc8a3;hpb=867eb0c62d754431c7f169297921231b064d67ef;p=zxing.git diff --git a/iphone/Classes/ShowMapAction.m b/iphone/Classes/ShowMapAction.m index 7ec13eb7..f3817a23 100644 --- a/iphone/Classes/ShowMapAction.m +++ b/iphone/Classes/ShowMapAction.m @@ -32,14 +32,14 @@ static NSURL * URLForLocation(NSString *location) { return [NSURL URLWithString:urlString]; } -- initWithLocation:(NSString *)l { +- (id)initWithLocation:(NSString *)l { if ((self = [super initWithURL:URLForLocation(l)]) != nil) { self.location = l; } return self; } -+ actionWithLocation:(NSString *)location { ++ (id)actionWithLocation:(NSString *)location { return [[[self alloc] initWithLocation:location] autorelease]; }