mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-17 17:32:45 +01:00
Codechange: Declare all IntervalTimers const, which can be const.
This commit is contained in:
@@ -220,7 +220,7 @@ struct IConsoleWindow : Window
|
||||
}
|
||||
|
||||
/** Check on a regular interval if the console buffer needs truncating. */
|
||||
IntervalTimer<TimerWindow> truncate_interval = {std::chrono::seconds(3), [this](auto) {
|
||||
const IntervalTimer<TimerWindow> truncate_interval = {std::chrono::seconds(3), [this](auto) {
|
||||
assert(this->height >= 0 && this->line_height > 0);
|
||||
size_t visible_lines = static_cast<size_t>(this->height / this->line_height);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user