Migrate more strings
FossilOrigin-Name: fa4b03aacafc3bab0a52c144241ab665332f7e8e789eb17fff63f76e02e2d5c9
This commit is contained in:
parent
daeb76f126
commit
745514762e
15 changed files with 154 additions and 134 deletions
|
@ -345,17 +345,12 @@ bool
|
|||
execfile(OFString *cfgfile)
|
||||
{
|
||||
@autoreleasepool {
|
||||
OFMutableData *data;
|
||||
@try {
|
||||
data = [OFMutableData dataWithContentsOfFile:cfgfile];
|
||||
execute([OFString stringWithContentsOfFile:cfgfile]);
|
||||
} @catch (id e) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Ensure \0 termination.
|
||||
[data addItem:""];
|
||||
|
||||
execute(@((char *)data.mutableItems));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue