1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Use string_view instead of const char*

This commit is contained in:
Gymnasiast
2021-03-31 19:22:09 +02:00
parent b627dbd3a4
commit d7809c26f5

View File

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