fix: sonarcloud code smells (#2421)

This commit is contained in:
Charles Kerr
2022-01-17 12:39:50 -06:00
committed by GitHub
parent 19ede2b8cd
commit 3036a76beb
41 changed files with 190 additions and 197 deletions

View File

@@ -98,7 +98,7 @@ Glib::ustring tr_strltime(time_t seconds)
seconds = 0;
}
int const days = (int)(seconds / 86400);
auto const days = (int)(seconds / 86400);
int const hours = (seconds % 86400) / 3600;
int const minutes = (seconds % 3600) / 60;
seconds = (seconds % 3600) % 60;