Problems converting to ARC
Problems converting to ARC
- Subject: Problems converting to ARC
- From: Christ Levesque <email@hidden>
- Date: Thu, 18 Apr 2013 00:45:14 -0700
Hi there,
I want to convert my code to ARC but this problems doesn't let me to do this. I read the errors but I couldn't do nothing. All the problems are in these else if statement and are colored Red.
else if (isupper(character)){
1) Pointer to non-const type 'NSString *' with no explicit ownership
NSString **classOrProtocolName = (isParsingProtocolName ?
&protocolName : &className);
2) Passing address of non-local object to __autoreleasing parameter for write back
i += parseClassOrProtocolName(unparsedText, strlen(unparsedText),
classOrProtocolName);
isParsingProtocolName = NO;
}else if (i == 0){
3) Passing address of non-local object to __autoreleasing parameter for write back
int advancement = parseTypePrefix(unparsedText, strlen(unparsedText),
&typePrefix);
if (advancement == 0)
return;
i += advancement;
}else{
2) Passing address of non-local object to __autoreleasing parameter for write back
i += parseTypeSuffix(unparsedText, strlen(unparsedText), &typeSuffix);
}
Thanks.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden