1
0
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:
Michael Steenbeek
2021-09-12 18:45:53 +02:00
committed by GitHub
parent 6202ecb281
commit 5d039a5f55

View File

@@ -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",