mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-17 03:53:07 +01:00
Use std::string_view instead of C string
Co-authored-by: ζeh Matt <5415177+ZehMatt@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
6202ecb281
commit
5d039a5f55
@@ -60,7 +60,7 @@ namespace OpenRCT2::Scripting
|
||||
|
||||
static std::string_view ObjectTypeToString(uint8_t type)
|
||||
{
|
||||
static const char* Types[] = {
|
||||
static constexpr std::string_view Types[] = {
|
||||
"ride",
|
||||
"small_scenery",
|
||||
"large_scenery",
|
||||
|
||||
Reference in New Issue
Block a user