mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-25 08:22:17 +00:00
Codechange: replace char* with std::string_view
This commit is contained in:
+1
-1
@@ -470,7 +470,7 @@ template <Commands Tcmd> struct CommandTraits;
|
||||
static constexpr auto &proc = proc_; \
|
||||
static constexpr CommandFlags flags = flags_; \
|
||||
static constexpr CommandType type = type_; \
|
||||
static inline constexpr const char *name = #proc_; \
|
||||
static inline constexpr std::string_view name = #proc_; \
|
||||
};
|
||||
|
||||
/** Storage buffer for serialized command data. */
|
||||
|
||||
Reference in New Issue
Block a user