Migrate more strings

FossilOrigin-Name: fa4b03aacafc3bab0a52c144241ab665332f7e8e789eb17fff63f76e02e2d5c9
This commit is contained in:
Jonathan Schleifer 2025-03-08 00:48:42 +00:00
parent daeb76f126
commit 745514762e
15 changed files with 154 additions and 134 deletions

View file

@ -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;
}
}