Skip to content
Browse files

Silence XCode 4 warnings

  • Loading branch information...
1 parent e1c2e4a commit ef31c02f946430f5f2f0cd87c10943a8e6a9d0c5 Dave Huffman committed Mar 16, 2011
View
4 FeedParser/FPEnclosure.m
@@ -34,7 +34,7 @@ + (id)enclosureWithURL:(NSString *)url length:(NSUInteger)length type:(NSString
}
- (id)initWithURL:(NSString *)inurl length:(NSUInteger)inlength type:(NSString *)intype {
- if (self = [super init]) {
+ if ((self = [super init])) {
url = [inurl copy];
length = inlength;
type = [intype copy];
@@ -64,7 +64,7 @@ - (void)dealloc {
#pragma mark Coding Support
- (id)initWithCoder:(NSCoder *)aDecoder {
- if (self = [super init]) {
+ if ((self = [super init])) {
url = [[aDecoder decodeObjectForKey:@"url"] copy];
length = [[aDecoder decodeObjectForKey:@"length"] unsignedIntegerValue];
type = [[aDecoder decodeObjectForKey:@"type"] copy];
View
4 FeedParser/FPFeed.m
@@ -61,7 +61,7 @@ + (void)initialize {
}
- (id)initWithBaseNamespaceURI:(NSString *)namespaceURI {
- if (self = [super initWithBaseNamespaceURI:namespaceURI]) {
+ if ((self = [super initWithBaseNamespaceURI:namespaceURI])) {
items = [[NSMutableArray alloc] init];
links = [[NSMutableArray alloc] init];
}
@@ -131,7 +131,7 @@ - (void)dealloc {
#pragma mark Coding Support
- (id)initWithCoder:(NSCoder *)aDecoder {
- if (self = [super initWithCoder:aDecoder]) {
+ if ((self = [super initWithCoder:aDecoder])) {
title = [[aDecoder decodeObjectForKey:@"title"] copy];
link = [[aDecoder decodeObjectForKey:@"link"] retain];
links = [[aDecoder decodeObjectForKey:@"links"] mutableCopy];
View
4 FeedParser/FPItem.m
@@ -96,7 +96,7 @@ + (void)initialize {
}
- (id)initWithBaseNamespaceURI:(NSString *)namespaceURI {
- if (self = [super initWithBaseNamespaceURI:namespaceURI]) {
+ if ((self = [super initWithBaseNamespaceURI:namespaceURI])) {
links = [[NSMutableArray alloc] init];
enclosures = [[NSMutableArray alloc] init];
}
@@ -209,7 +209,7 @@ - (void)dealloc {
#pragma mark Coding Support
- (id)initWithCoder:(NSCoder *)aDecoder {
- if (self = [super initWithCoder:aDecoder]) {
+ if ((self = [super initWithCoder:aDecoder])) {
title = [[aDecoder decodeObjectForKey:@"title"] copy];
link = [[aDecoder decodeObjectForKey:@"link"] retain];
links = [[aDecoder decodeObjectForKey:@"links"] mutableCopy];
View
4 FeedParser/FPLink.m
@@ -33,7 +33,7 @@ + (id)linkWithHref:(NSString *)href rel:(NSString *)rel type:(NSString *)type ti
}
- (id)initWithHref:(NSString *)inHref rel:(NSString *)inRel type:(NSString *)inType title:(NSString *)inTitle {
- if (self = [super init]) {
+ if ((self = [super init])) {
href = [inHref copy];
rel = (inRel ? [inRel copy] : @"alternate");
type = [inType copy];
@@ -74,7 +74,7 @@ - (void)dealloc {
#pragma mark Coding Support
- (id)initWithCoder:(NSCoder *)aDecoder {
- if (self = [super init]) {
+ if ((self = [super init])) {
href = [[aDecoder decodeObjectForKey:@"href"] copy];
rel = [[aDecoder decodeObjectForKey:@"rel"] copy];
type = [[aDecoder decodeObjectForKey:@"type"] copy];
View
2 FeedParser/Internal/FPXMLPair.m
@@ -33,7 +33,7 @@ + (id)pairWithFirst:(id)firstObject second:(id)secondObject {
}
- (id)initWithFirst:(id)firstObject second:(id)secondObject {
- if (self = [super init]) {
+ if ((self = [super init])) {
first = [firstObject retain];
second = [secondObject retain];
}
View
6 FeedParser/Internal/FPXMLParser.m
@@ -92,14 +92,14 @@ + (void)registerHandler:(SEL)selector forElement:(NSString *)elementName namespa
}
- (id)initWithBaseNamespaceURI:(NSString *)namespaceURI {
- if (self = [self init]) {
+ if ((self = [self init])) {
baseNamespaceURI = [namespaceURI copy];
}
return self;
}
- (id)init {
- if (self = [super init]) {
+ if ((self = [super init])) {
extensionElements = [[NSMutableArray alloc] init];
handlers = [[kHandlerMap objectForKey:[self class]] retain];
currentElementType = FPXMLParserStreamElementType;
@@ -376,7 +376,7 @@ - (void)resumeParsing:(NSXMLParser *)parser fromChild:(id<FPXMLParserProtocol>)c
#pragma mark Coding Support
- (id)initWithCoder:(NSCoder *)aDecoder {
- if (self = [self init]) {
+ if ((self = [self init])) {
baseNamespaceURI = [[aDecoder decodeObjectForKey:@"baseNamespaceURI"] copy];
[extensionElements release];
extensionElements = [[aDecoder decodeObjectForKey:@"extensionElements"] mutableCopy];
View
4 FeedParser/XML Extensions/FPExtensionElementNode.m
@@ -37,7 +37,7 @@ @implementation FPExtensionElementNode
- (id)initWithElementName:(NSString *)aName namespaceURI:(NSString *)aNamespaceURI qualifiedName:(NSString *)qName
attributes:(NSDictionary *)attributeDict {
- if (self = [super init]) {
+ if ((self = [super init])) {
name = [aName copy];
qualifiedName = [qName copy];
namespaceURI = [aNamespaceURI copy];
@@ -170,7 +170,7 @@ - (void)resumeParsing:(NSXMLParser *)parser fromChild:(id<FPXMLParserProtocol>)c
#pragma mark Coding Support
- (id)initWithCoder:(NSCoder *)aDecoder {
- if (self = [super initWithCoder:aDecoder]) {
+ if ((self = [super initWithCoder:aDecoder])) {
name = [[aDecoder decodeObjectForKey:@"name"] copy];
qualifiedName = [[aDecoder decodeObjectForKey:@"qualifiedName"] copy];
namespaceURI = [[aDecoder decodeObjectForKey:@"namespaceURI"] copy];
View
4 FeedParser/XML Extensions/FPExtensionTextNode.m
@@ -28,7 +28,7 @@
@implementation FPExtensionTextNode
- (id)initWithStringValue:(NSString *)value {
- if (self = [super init]) {
+ if ((self = [super init])) {
stringValue = [value copy];
}
return self;
@@ -61,7 +61,7 @@ - (void)dealloc {
#pragma mark Coding Support
- (id)initWithCoder:(NSCoder *)aDecoder {
- if (self = [super initWithCoder:aDecoder]) {
+ if ((self = [super initWithCoder:aDecoder])) {
stringValue = [[aDecoder decodeObjectForKey:@"stringValue"] copy];
}
return self;

0 comments on commit ef31c02

Please sign in to comment.
Something went wrong with that request. Please try again.