Codechange: coding style fixes

This commit is contained in:
Rubidium
2024-01-03 22:33:38 +01:00
committed by rubidium42
parent 0075364c89
commit e3f49ee7a0
59 changed files with 121 additions and 121 deletions

View File

@@ -1242,7 +1242,7 @@ bool AfterLoadGame()
}
}
for (Vehicle* v : Vehicle::Iterate()) {
for (Vehicle *v : Vehicle::Iterate()) {
if (!v->IsGroundVehicle()) continue;
if (IsBridgeTile(v->tile)) {
DiagDirection dir = GetTunnelBridgeDirection(v->tile);
@@ -2397,7 +2397,7 @@ bool AfterLoadGame()
* 'default' names, after that we can assign the names. */
for (Depot *d : Depot::Iterate()) d->town_cn = UINT16_MAX;
for (Depot* d : Depot::Iterate()) MakeDefaultName(d);
for (Depot *d : Depot::Iterate()) MakeDefaultName(d);
}
if (IsSavegameVersionBefore(SLV_142)) {
@@ -2482,7 +2482,7 @@ bool AfterLoadGame()
if (!wp->name.empty()) wp->town_cn = UINT16_MAX;
}
for (Waypoint* wp : Waypoint::Iterate()) {
for (Waypoint *wp : Waypoint::Iterate()) {
if (!wp->name.empty()) MakeDefaultName(wp);
}
}

View File

@@ -48,7 +48,7 @@ static std::vector<Engine*> _temp_engine;
* The allocated Engine must be freed using FreeEngine;
* @return Allocated engine.
*/
static Engine* CallocEngine()
static Engine *CallocEngine()
{
uint8_t *zero = CallocT<uint8_t>(sizeof(Engine));
Engine *engine = new (zero) Engine();

View File

@@ -86,7 +86,7 @@ void MoveWaypointsToBaseStations()
/* As of version 17, we recalculate the custom graphic ID of waypoints
* from the GRF ID / station index. */
for (OldWaypoint &wp : _old_waypoints) {
StationClass* stclass = StationClass::Get(STAT_CLASS_WAYP);
StationClass *stclass = StationClass::Get(STAT_CLASS_WAYP);
for (uint i = 0; i < stclass->GetSpecCount(); i++) {
const StationSpec *statspec = stclass->GetSpec(i);
if (statspec != nullptr && statspec->grf_prop.grffile->grfid == wp.grfid && statspec->grf_prop.local_id == wp.localidx) {