1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-19 12:39:11 +00:00

Codechange: replace fprintf(<FILE*> with fmt::print(<FILE*>

This commit is contained in:
Rubidium
2023-05-21 08:13:28 +02:00
committed by rubidium42
parent c518293135
commit 275ebf4509
11 changed files with 39 additions and 41 deletions

View File

@@ -29,7 +29,7 @@
*/
void NORETURN FatalErrorI(const std::string &msg)
{
fprintf(stderr, "settingsgen: FATAL: %s\n", msg.c_str());
fmt::print(stderr, "settingsgen: FATAL: {}\n", msg);
exit(1);
}
@@ -483,7 +483,7 @@ int CDECL main(int argc, char *argv[])
break;
case -2:
fprintf(stderr, "Invalid arguments\n");
fmt::print(stderr, "Invalid arguments\n");
return 1;
}
}