From d7809c26f56083dd848942920fd51199059f50d4 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Wed, 31 Mar 2021 19:22:09 +0200 Subject: [PATCH] Use string_view instead of const char* --- src/openrct2/rct1/Tables.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/rct1/Tables.cpp b/src/openrct2/rct1/Tables.cpp index f86d9364ab..73918a7a67 100644 --- a/src/openrct2/rct1/Tables.cpp +++ b/src/openrct2/rct1/Tables.cpp @@ -118,7 +118,7 @@ namespace RCT1 ObjectEntryIndex GetTerrain(uint8_t terrainSurface) { - static constexpr const char* map[RCT1_NUM_TERRAIN_SURFACES] = + static constexpr std::string_view map[RCT1_NUM_TERRAIN_SURFACES] = { "rct2.surface.grass", "rct2.surface.sand", @@ -148,7 +148,7 @@ namespace RCT1 ObjectEntryIndex GetTerrainEdge(uint8_t terrainEdge) { - static constexpr const char* map[RCT1_NUM_TERRAIN_EDGES] = + static constexpr std::string_view map[RCT1_NUM_TERRAIN_EDGES] = { "rct2.edge.rock", "rct1.edge.brick",