mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
Use 'auto' to avoid duplicating the type name
This commit is contained in:
@@ -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.;
|
||||
|
||||
Reference in New Issue
Block a user