mirror of
https://github.com/zxing/zxing.git
synced 2024-11-13 14:34:08 -08:00
[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:
parent
1afa8c80d4
commit
f13443cac8
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
@property (nonatomic, copy) NSString *body;
|
@property (nonatomic, copy) NSString *body;
|
||||||
|
|
||||||
+ actionWithNumber:(NSString *)number body:(NSString *)body;
|
+ (id)actionWithNumber:(NSString *)number body:(NSString *)body;
|
||||||
+ actionWithNumber:(NSString *)number;
|
+ (id)actionWithNumber:(NSString *)number;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
return [NSURL URLWithString:urlString];
|
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) {
|
if ((self = [super initWithURL:[[self class] urlForNumber:n withBody:b]]) != nil) {
|
||||||
self.number = n;
|
self.number = n;
|
||||||
self.body = b;
|
self.body = b;
|
||||||
|
@ -49,15 +49,15 @@
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
- initWithNumber:(NSString *)n {
|
- (id)initWithNumber:(NSString *)n {
|
||||||
return [self initWithNumber:n body:nil];
|
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];
|
return [[[self alloc] initWithNumber:number body:body] autorelease];
|
||||||
}
|
}
|
||||||
|
|
||||||
+ actionWithNumber:(NSString *)number {
|
+ (id)actionWithNumber:(NSString *)number {
|
||||||
return [self actionWithNumber:number body:nil];
|
return [self actionWithNumber:number body:nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue