diff --git a/src/AGRegex/AGRegex.m b/src/AGRegex/AGRegex.m index fffd893..d38c029 100644 --- a/src/AGRegex/AGRegex.m +++ b/src/AGRegex/AGRegex.m @@ -333,7 +333,7 @@ - (NSArray *)splitString:(NSString *)str limit:(int)lim { // add captured subpatterns if any count = [match count]; for (j = 1; j < count; j++) - if (group = [match groupAtIndex:j]) + if ((group = [match groupAtIndex:j])) [result addObject:group]; // set remaining range to the part after the split remainRange.location = matchRange.location + matchRange.length; @@ -447,7 +447,7 @@ - (void)dealloc { - (id)nextObject { AGRegexMatch *next; - if (next = [regex findInString:string range:range]) { + if ((next = [regex findInString:string range:range])) { range.location = [next range].location + [next range].length; if ([next range].length == 0) range.location++; diff --git a/src/ComplexType.m b/src/ComplexType.m index b41ef45..e9e78dd 100644 --- a/src/ComplexType.m +++ b/src/ComplexType.m @@ -225,7 +225,7 @@ - (void)setPropOrder:(NSArray *)newOrder; { if (newOrder != propOrder) { [propOrder autorelease]; - propOrder = [newOrder retain]; + propOrder = (NSMutableArray *)[newOrder retain]; } } diff --git a/src/WSDLParsingServiceLibxsltImpl.m b/src/WSDLParsingServiceLibxsltImpl.m index cd6b4d2..e1966be 100644 --- a/src/WSDLParsingServiceLibxsltImpl.m +++ b/src/WSDLParsingServiceLibxsltImpl.m @@ -318,7 +318,7 @@ - (void)setErrorMessage:(NSString *)newMsg; { if (newMsg != errorMessage) { [errorMessage autorelease]; - errorMessage = [newMsg retain]; + errorMessage = (NSMutableString *)[newMsg retain]; } }