Minor mutability corrections

This commit is contained in:
Richard Frith-Macdonald 2022-09-15 14:52:15 +01:00
parent 996a5b8a84
commit e48cfb9587
2 changed files with 5 additions and 3 deletions

View file

@ -6340,11 +6340,13 @@ static NSFileManager *fm = nil;
*/
+ (id) stringWithFormat: (NSString*)format, ...
{
id s;
va_list ap;
va_start(ap, format);
self = [super stringWithFormat: format arguments: ap];
s = [super stringWithFormat: format arguments: ap];
va_end(ap);
return self;
return s;
}
/** <init/> <override-subclass />

View file

@ -85,7 +85,7 @@ main(int argc, char** argv, char **env)
}
NS_DURING
{
fileContents = [NSString stringWithContentsOfFile: sourceName];
fileContents = [NSMutableString stringWithContentsOfFile: sourceName];
plist = [fileContents propertyList];
}
NS_HANDLER