Skip to content
This repository has been archived by the owner on Feb 14, 2020. It is now read-only.

Commit

Permalink
fixed a few warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Post committed May 16, 2011
1 parent 5439006 commit a11816d
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
3 changes: 2 additions & 1 deletion XMLRPCConnection.m
Expand Up @@ -51,7 +51,8 @@ - (void)connectionDidFinishLoading: (NSURLConnection *)connection;
@implementation XMLRPCConnection

- (id)initWithXMLRPCRequest: (XMLRPCRequest *)request delegate: (id<XMLRPCConnectionDelegate>)delegate manager: (XMLRPCConnectionManager *)manager {
if (self = [super init]) {
self = [super init];
if (self) {
myManager = [manager retain];
myRequest = [request retain];
myIdentifier = [[NSString stringByGeneratingUUID] retain];
Expand Down
5 changes: 3 additions & 2 deletions XMLRPCConnectionManager.m
Expand Up @@ -29,7 +29,8 @@ @implementation XMLRPCConnectionManager
static XMLRPCConnectionManager *sharedInstance = nil;

- (id)init {
if (self = [super init]) {
self = [super init];
if (self) {
myConnections = [[NSMutableDictionary alloc] init];
}

Expand All @@ -55,7 +56,7 @@ + (id)allocWithZone: (NSZone *)zone {
+ (XMLRPCConnectionManager *)sharedManager {
@synchronized(self) {
if (!sharedInstance) {
[[self alloc] init];
sharedInstance = [[self alloc] init];
}
}

Expand Down
5 changes: 3 additions & 2 deletions XMLRPCEncoder.m
Expand Up @@ -60,7 +60,8 @@ - (NSString *)encodeData: (NSData *)data;
@implementation XMLRPCEncoder

- (id)init {
if (self = [super init]) {
self = [super init];
if (self) {
myMethod = [[NSString alloc] init];
myParameters = [[NSArray alloc] init];
}
Expand All @@ -81,7 +82,7 @@ - (NSString *)encode {
NSEnumerator *enumerator = [myParameters objectEnumerator];
id parameter = nil;

while (parameter = [enumerator nextObject]) {
while ((parameter = [enumerator nextObject])) {
[buffer appendString: @"<param>"];
[buffer appendString: [self encodeObject: parameter]];
[buffer appendString: @"</param>"];
Expand Down
3 changes: 2 additions & 1 deletion XMLRPCEventBasedParserDelegate.m
Expand Up @@ -56,7 +56,8 @@ - (NSData *)parseData: (NSString *)value;
@implementation XMLRPCEventBasedParserDelegate

- (id)initWithParent: (XMLRPCEventBasedParserDelegate *)parent {
if (self = [super init]) {
self = [super init];
if (self) {
myParent = parent;
myChildren = [[NSMutableArray alloc] initWithCapacity: 1];
myElementType = XMLRPCElementTypeString;
Expand Down
3 changes: 2 additions & 1 deletion XMLRPCRequest.m
Expand Up @@ -26,7 +26,8 @@
@implementation XMLRPCRequest

- (id)initWithURL: (NSURL *)URL {
if (self = [super init]) {
self = [super init];
if (self) {
if (URL) {
myRequest = [[NSMutableURLRequest alloc] initWithURL: URL];
} else {
Expand Down
3 changes: 2 additions & 1 deletion XMLRPCResponse.m
Expand Up @@ -30,7 +30,8 @@ - (id)initWithData: (NSData *)data {
return nil;
}

if (self = [super init]) {
self = [super init];
if (self) {
XMLRPCEventBasedParser *parser = [[XMLRPCEventBasedParser alloc] initWithData: data];

if (!parser) {
Expand Down

0 comments on commit a11816d

Please sign in to comment.