1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2025-12-23 21:22:46 +01:00

Codechange: Space between template and < (#13278)

Make it all consistent so it matches CODINGSTYLE.
This commit is contained in:
Peter Nelson
2025-01-04 17:56:14 +00:00
committed by GitHub
parent 80be5115fe
commit b653f875b0
39 changed files with 112 additions and 112 deletions

View File

@@ -291,7 +291,7 @@ void VehicleCargoList::Append(CargoPacket *cp, MoveToAction action)
* will be kept and the loop will be aborted.
* @param action Action instance to be applied.
*/
template<class Taction>
template <class Taction>
void VehicleCargoList::ShiftCargo(Taction action)
{
Iterator it(this->packets.begin());
@@ -313,7 +313,7 @@ void VehicleCargoList::ShiftCargo(Taction action)
* will be kept and the loop will be aborted.
* @param action Action instance to be applied.
*/
template<class Taction>
template <class Taction>
void VehicleCargoList::PopCargo(Taction action)
{
if (this->packets.empty()) return;
@@ -550,7 +550,7 @@ void VehicleCargoList::InvalidateCache()
* @param max_move Maximum amount of cargo to reassign.
* @return Amount of cargo actually reassigned.
*/
template<VehicleCargoList::MoveToAction Tfrom, VehicleCargoList::MoveToAction Tto>
template <VehicleCargoList::MoveToAction Tfrom, VehicleCargoList::MoveToAction Tto>
uint VehicleCargoList::Reassign(uint max_move)
{
static_assert(Tfrom != MTA_TRANSFER && Tto != MTA_TRANSFER);
@@ -567,7 +567,7 @@ uint VehicleCargoList::Reassign(uint max_move)
* @param max_move Maximum amount of cargo to reassign.
* @return Amount of cargo actually reassigned.
*/
template<>
template <>
uint VehicleCargoList::Reassign<VehicleCargoList::MTA_DELIVER, VehicleCargoList::MTA_TRANSFER>(uint max_move)
{
max_move = std::min(this->action_counts[MTA_DELIVER], max_move);