mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-22 10:39:43 +00:00
Codechange: Add 'const' to static variables, which are only initialised once.
This commit is contained in:
@@ -110,7 +110,7 @@ inline auto MakeCallbackTable(std::index_sequence<i...>) noexcept
|
||||
}
|
||||
|
||||
/** Type-erased table of callbacks. */
|
||||
static auto _callback_table = MakeCallbackTable(std::make_index_sequence<_callback_tuple_size>{});
|
||||
static const auto _callback_table = MakeCallbackTable(std::make_index_sequence<_callback_tuple_size>{});
|
||||
|
||||
template <typename T> struct CallbackArgsHelper;
|
||||
template <typename... Targs>
|
||||
|
||||
Reference in New Issue
Block a user