[iphone] zyntax modified (actually cleaner now, so it is building with recent versions of clang

git-svn-id: https://zxing.googlecode.com/svn/trunk@2100 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
rpechayr 2011-12-30 16:06:57 +00:00
parent 1afa8c80d4
commit f13443cac8
2 changed files with 6 additions and 6 deletions

View file

@ -28,7 +28,7 @@
@property (nonatomic, copy) NSString *body;
+ actionWithNumber:(NSString *)number body:(NSString *)body;
+ actionWithNumber:(NSString *)number;
+ (id)actionWithNumber:(NSString *)number body:(NSString *)body;
+ (id)actionWithNumber:(NSString *)number;
@end

View file

@ -41,7 +41,7 @@
return [NSURL URLWithString:urlString];
}
- initWithNumber:(NSString *)n body:(NSString *)b {
- (id)initWithNumber:(NSString *)n body:(NSString *)b {
if ((self = [super initWithURL:[[self class] urlForNumber:n withBody:b]]) != nil) {
self.number = n;
self.body = b;
@ -49,15 +49,15 @@
return self;
}
- initWithNumber:(NSString *)n {
- (id)initWithNumber:(NSString *)n {
return [self initWithNumber:n body:nil];
}
+ actionWithNumber:(NSString *)number body:(NSString *)body {
+ (id)actionWithNumber:(NSString *)number body:(NSString *)body {
return [[[self alloc] initWithNumber:number body:body] autorelease];
}
+ actionWithNumber:(NSString *)number {
+ (id)actionWithNumber:(NSString *)number {
return [self actionWithNumber:number body:nil];
}