Base/App: fix warnings from code analysers:

* convert old-style-casts to explicit C++ casts where possible
* make some implicit conversions explicit
This commit is contained in:
wmayer
2022-03-06 23:49:30 +01:00
parent 26ece78df4
commit 4a343ab31e
30 changed files with 211 additions and 155 deletions

View File

@@ -40,7 +40,7 @@ void FutureWatcherProgress::progressValueChanged(int v)
{
if (steps == 0)
return;
unsigned int step = (100 * v) / steps;
unsigned int step = (100 * static_cast<unsigned int>(v)) / steps;
if (step > current) {
current = step;
seq.next();