Remove redundant const qualifiers

This commit is contained in:
matheusvb3 committed 2026-01-16 19:35:29 -03:00
1 parent f75c5035d5
commit 06d7ed1d4e
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -74,7 +74,7 @@ struct GameStateSnapshot_t
}
// Must pass a function that can access the sprite.
void SerialiseSprites(std::function<EntitySnapshot*(const EntityId)> getEntity, const size_t numSprites, bool saving)
void SerialiseSprites(std::function<EntitySnapshot*(EntityId)> getEntity, const size_t numSprites, bool saving)
{
const bool loading = !saving;
+1 -1
View File
@@ -113,7 +113,7 @@ namespace OpenRCT2::TrackMetaData
}
};
using TrackComputeFunction = int32_t (*)(const int16_t);
using TrackComputeFunction = int32_t (*)(int16_t);
struct TrackElementDescriptor
{
StringId description;
@@ -23,7 +23,7 @@ namespace OpenRCT2::World::MapGenerator
SLOPE_E_THRESHOLD_FLAGS = (1 << 3)
};
using SmoothFunction = std::function<int32_t(const TileCoordsXY)>;
using SmoothFunction = std::function<int32_t(TileCoordsXY)>;
int32_t smoothTileStrong(TileCoordsXY tileCoord);
int32_t smoothTileWeak(TileCoordsXY tileCoord);