Codechange: Space between template and < (#13278)
Make it all consistent so it matches CODINGSTYLE.
This commit is contained in:
@@ -74,7 +74,7 @@ uint16_t TimerGameCalendar::sub_date_fract = {};
|
||||
TimerGameCalendar::month = ymd.month;
|
||||
}
|
||||
|
||||
template<>
|
||||
template <>
|
||||
void IntervalTimer<TimerGameCalendar>::Elapsed(TimerGameCalendar::TElapsed trigger)
|
||||
{
|
||||
if (trigger == this->period.trigger) {
|
||||
@@ -82,7 +82,7 @@ void IntervalTimer<TimerGameCalendar>::Elapsed(TimerGameCalendar::TElapsed trigg
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
template <>
|
||||
void TimeoutTimer<TimerGameCalendar>::Elapsed(TimerGameCalendar::TElapsed trigger)
|
||||
{
|
||||
if (this->fired) return;
|
||||
@@ -93,7 +93,7 @@ void TimeoutTimer<TimerGameCalendar>::Elapsed(TimerGameCalendar::TElapsed trigge
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
template <>
|
||||
bool TimerManager<TimerGameCalendar>::Elapsed([[maybe_unused]] TimerGameCalendar::TElapsed delta)
|
||||
{
|
||||
assert(delta == 1);
|
||||
@@ -166,7 +166,7 @@ bool TimerManager<TimerGameCalendar>::Elapsed([[maybe_unused]] TimerGameCalendar
|
||||
}
|
||||
|
||||
#ifdef WITH_ASSERT
|
||||
template<>
|
||||
template <>
|
||||
void TimerManager<TimerGameCalendar>::Validate(TimerGameCalendar::TPeriod period)
|
||||
{
|
||||
if (period.priority == TimerGameCalendar::Priority::NONE) return;
|
||||
|
||||
@@ -101,7 +101,7 @@ TimerGameEconomy::DateFract TimerGameEconomy::date_fract = {};
|
||||
return (_settings_game.economy.timekeeping_units == TKU_WALLCLOCK);
|
||||
}
|
||||
|
||||
template<>
|
||||
template <>
|
||||
void IntervalTimer<TimerGameEconomy>::Elapsed(TimerGameEconomy::TElapsed trigger)
|
||||
{
|
||||
if (trigger == this->period.trigger) {
|
||||
@@ -109,7 +109,7 @@ void IntervalTimer<TimerGameEconomy>::Elapsed(TimerGameEconomy::TElapsed trigger
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
template <>
|
||||
void TimeoutTimer<TimerGameEconomy>::Elapsed(TimerGameEconomy::TElapsed trigger)
|
||||
{
|
||||
if (this->fired) return;
|
||||
@@ -120,7 +120,7 @@ void TimeoutTimer<TimerGameEconomy>::Elapsed(TimerGameEconomy::TElapsed trigger)
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
template <>
|
||||
bool TimerManager<TimerGameEconomy>::Elapsed([[maybe_unused]] TimerGameEconomy::TElapsed delta)
|
||||
{
|
||||
assert(delta == 1);
|
||||
@@ -190,7 +190,7 @@ bool TimerManager<TimerGameEconomy>::Elapsed([[maybe_unused]] TimerGameEconomy::
|
||||
}
|
||||
|
||||
#ifdef WITH_ASSERT
|
||||
template<>
|
||||
template <>
|
||||
void TimerManager<TimerGameEconomy>::Validate(TimerGameEconomy::TPeriod period)
|
||||
{
|
||||
if (period.priority == TimerGameEconomy::Priority::NONE) return;
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
template<>
|
||||
template <>
|
||||
void IntervalTimer<TimerGameRealtime>::Elapsed(TimerGameRealtime::TElapsed delta)
|
||||
{
|
||||
if (this->period.period == std::chrono::milliseconds::zero()) return;
|
||||
@@ -37,7 +37,7 @@ void IntervalTimer<TimerGameRealtime>::Elapsed(TimerGameRealtime::TElapsed delta
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
template <>
|
||||
void TimeoutTimer<TimerGameRealtime>::Elapsed(TimerGameRealtime::TElapsed delta)
|
||||
{
|
||||
if (this->fired) return;
|
||||
@@ -53,7 +53,7 @@ void TimeoutTimer<TimerGameRealtime>::Elapsed(TimerGameRealtime::TElapsed delta)
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
template <>
|
||||
bool TimerManager<TimerGameRealtime>::Elapsed(TimerGameRealtime::TElapsed delta)
|
||||
{
|
||||
for (auto timer : TimerManager<TimerGameRealtime>::GetTimers()) {
|
||||
@@ -64,7 +64,7 @@ bool TimerManager<TimerGameRealtime>::Elapsed(TimerGameRealtime::TElapsed delta)
|
||||
}
|
||||
|
||||
#ifdef WITH_ASSERT
|
||||
template<>
|
||||
template <>
|
||||
void TimerManager<TimerGameRealtime>::Validate(TimerGameRealtime::TPeriod)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
TimerGameTick::TickCounter TimerGameTick::counter = 0;
|
||||
|
||||
template<>
|
||||
template <>
|
||||
void IntervalTimer<TimerGameTick>::Elapsed(TimerGameTick::TElapsed delta)
|
||||
{
|
||||
if (this->period.value == 0) return;
|
||||
@@ -36,7 +36,7 @@ void IntervalTimer<TimerGameTick>::Elapsed(TimerGameTick::TElapsed delta)
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
template <>
|
||||
void TimeoutTimer<TimerGameTick>::Elapsed(TimerGameTick::TElapsed delta)
|
||||
{
|
||||
if (this->fired) return;
|
||||
@@ -50,7 +50,7 @@ void TimeoutTimer<TimerGameTick>::Elapsed(TimerGameTick::TElapsed delta)
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
template <>
|
||||
bool TimerManager<TimerGameTick>::Elapsed(TimerGameTick::TElapsed delta)
|
||||
{
|
||||
TimerGameTick::counter++;
|
||||
@@ -63,7 +63,7 @@ bool TimerManager<TimerGameTick>::Elapsed(TimerGameTick::TElapsed delta)
|
||||
}
|
||||
|
||||
#ifdef WITH_ASSERT
|
||||
template<>
|
||||
template <>
|
||||
void TimerManager<TimerGameTick>::Validate(TimerGameTick::TPeriod period)
|
||||
{
|
||||
if (period.priority == TimerGameTick::Priority::NONE) return;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
template<>
|
||||
template <>
|
||||
void IntervalTimer<TimerWindow>::Elapsed(TimerWindow::TElapsed delta)
|
||||
{
|
||||
if (this->period == std::chrono::milliseconds::zero()) return;
|
||||
@@ -34,7 +34,7 @@ void IntervalTimer<TimerWindow>::Elapsed(TimerWindow::TElapsed delta)
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
template <>
|
||||
void TimeoutTimer<TimerWindow>::Elapsed(TimerWindow::TElapsed delta)
|
||||
{
|
||||
if (this->fired) return;
|
||||
@@ -48,7 +48,7 @@ void TimeoutTimer<TimerWindow>::Elapsed(TimerWindow::TElapsed delta)
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
template <>
|
||||
bool TimerManager<TimerWindow>::Elapsed(TimerWindow::TElapsed delta)
|
||||
{
|
||||
/* Make a temporary copy of the timers, as a timer's callback might add/remove other timers. */
|
||||
@@ -62,7 +62,7 @@ bool TimerManager<TimerWindow>::Elapsed(TimerWindow::TElapsed delta)
|
||||
}
|
||||
|
||||
#ifdef WITH_ASSERT
|
||||
template<>
|
||||
template <>
|
||||
void TimerManager<TimerWindow>::Validate(TimerWindow::TPeriod)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user