mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-16 17:02:37 +01:00
Codechange: Add 'const' to static variables, which are only initialised once.
This commit is contained in:
@@ -864,7 +864,7 @@ std::optional<std::string> GetTextfile(TextfileType type, Subdirectory dir, std:
|
||||
|
||||
std::string_view base_path = filename.substr(0, slash + 1);
|
||||
|
||||
static const std::initializer_list<std::string_view> extensions{
|
||||
static const std::initializer_list<const std::string_view> extensions{
|
||||
"txt",
|
||||
"md",
|
||||
#if defined(WITH_ZLIB)
|
||||
|
||||
Reference in New Issue
Block a user