1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-01 19:25:12 +01:00

More code maintenance (#24482)

This commit is contained in:
Michael Steenbeek
2025-05-23 20:33:26 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -960,7 +960,7 @@ namespace OpenRCT2::Ui::Windows
case WIDX_FILENAME_TEXTBOX:
{
std::string tempText = text.data();
std::string tempText{ text };
const char* cStr = tempText.c_str();
if (strcmp(_currentFilename, cStr) == 0)
return;

View File

@@ -380,7 +380,7 @@ static uint8_t ViewportSurfacePaintSetupGetRelativeSlope(const SurfaceElement& s
* rct2: 0x0065E890, 0x0065E946, 0x0065E9FC, 0x0065EAB2
*/
static void ViewportSurfaceSmoothenEdge(
PaintSession& session, enum edge_t edge, struct TileDescriptor self, struct TileDescriptor neighbour)
PaintSession& session, const edge_t edge, const TileDescriptor& self, const TileDescriptor& neighbour)
{
PROFILED_FUNCTION();