mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Minor mutability corrections
This commit is contained in:
parent
996a5b8a84
commit
e48cfb9587
2 changed files with 5 additions and 3 deletions
|
@ -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 />
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue