1
0
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:
frosch
2025-04-27 16:35:43 +02:00
committed by frosch
parent 1900125c98
commit 61cec33be2
20 changed files with 34 additions and 34 deletions

View File

@@ -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)