Codechange: Use string_view for FileExists.

This commit is contained in:
frosch
2025-05-04 19:01:17 +02:00
committed by frosch
parent d571491405
commit 1900125c98
2 changed files with 2 additions and 2 deletions

View File

@@ -129,7 +129,7 @@ bool FioCheckFileExists(std::string_view filename, Subdirectory subdir)
* @param filename the file to test.
* @return true if and only if the file exists.
*/
bool FileExists(const std::string &filename)
bool FileExists(std::string_view filename)
{
std::error_code ec;
return std::filesystem::exists(OTTD2FS(filename), ec);