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
No known key found for this signature in database
GPG Key ID: DBFFF47AB2CA3EDD
1 changed files with 2 additions and 2 deletions

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