mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-10 23:42:46 -07:00
Use 'auto' to avoid duplicating the type name
This commit is contained in:
parent
947c7e1d64
commit
d8cbc9266a
25 changed files with 68 additions and 68 deletions
|
@ -97,7 +97,7 @@ namespace
|
|||
if (sizeInBytes < 0) return false;
|
||||
|
||||
int i = 0;
|
||||
qreal rawVal = static_cast<qreal>(sizeInBytes);
|
||||
auto rawVal = static_cast<qreal>(sizeInBytes);
|
||||
|
||||
while ((rawVal >= 1024.) && (i <= static_cast<int>(Utils::Misc::SizeUnit::ExbiByte))) {
|
||||
rawVal /= 1024.;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue