QProgressBar: remove unneeded ctor-style no-op cast
The expression '100' already has type int, so the cast is not necessary, and confusing. Remove it. Change-Id: Id63f56645b1b13532f73e481547c2a606dfc9c9a Reviewed-by: David Faure <david.faure@kdab.com>bb10
parent
342691b802
commit
e35c993020
|
|
@ -481,7 +481,7 @@ QString QProgressBar::text() const
|
|||
// progress bar has one step and that we are on that step. Return
|
||||
// 100% here in order to avoid division by zero further down.
|
||||
if (totalSteps == 0) {
|
||||
result.replace(QLatin1String("%p"), locale.toString(int(100)));
|
||||
result.replace(QLatin1String("%p"), locale.toString(100));
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue