mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-19 10:22:39 +01:00
Codechange: use std::string_view over char*
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
FatalError("NOT_REACHED triggered at line {} of {}", location.line(), location.file_name());
|
||||
}
|
||||
|
||||
[[noreturn]] void AssertFailedError(const char *expression, const std::source_location location)
|
||||
[[noreturn]] void AssertFailedError(std::string_view expression, const std::source_location location)
|
||||
{
|
||||
FatalError("Assertion failed at line {} of {}: {}", location.line(), location.file_name(), expression);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user