fix: resta tidy (60 troballes — empty-catch, widening, branch-clone, etc.)

This commit is contained in:
2026-05-14 23:55:44 +02:00
parent f047ae1a56
commit 8f5d897048
23 changed files with 163 additions and 193 deletions

View File

@@ -2,8 +2,7 @@
DeltaTimer::DeltaTimer() noexcept
: last_counter_(SDL_GetPerformanceCounter()),
perf_freq_(static_cast<double>(SDL_GetPerformanceFrequency())),
time_scale_(1.0F) {
perf_freq_(static_cast<double>(SDL_GetPerformanceFrequency())) {
}
auto DeltaTimer::tick() noexcept -> float {

View File

@@ -24,5 +24,5 @@ class DeltaTimer {
private:
Uint64 last_counter_;
double perf_freq_;
float time_scale_;
float time_scale_{1.0F};
};