1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-21 11:22:45 +01:00

Codechange: Declare all IntervalTimers const, which can be const.

This commit is contained in:
frosch
2025-04-27 17:09:01 +02:00
committed by frosch
parent 61cec33be2
commit 0d5b3ebd7f
37 changed files with 60 additions and 60 deletions

View File

@@ -457,7 +457,7 @@ struct FramerateWindow : Window {
}
/** Update the window on a regular interval. */
IntervalTimer<TimerWindow> update_interval = {std::chrono::milliseconds(100), [this](auto) {
const IntervalTimer<TimerWindow> update_interval = {std::chrono::milliseconds(100), [this](auto) {
this->UpdateData();
this->SetDirty();
}};
@@ -838,7 +838,7 @@ struct FrametimeGraphWindow : Window {
}
/** Update the scaling on a regular interval. */
IntervalTimer<TimerWindow> update_interval = {std::chrono::milliseconds(500), [this](auto) {
const IntervalTimer<TimerWindow> update_interval = {std::chrono::milliseconds(500), [this](auto) {
this->UpdateScale();
}};