Replace min, max, clamp functions with std counterparts

This commit is contained in:
Chocobo1
2021-12-27 20:31:57 +08:00
parent 3ea4c66d41
commit 63043b4927
7 changed files with 36 additions and 28 deletions

View File

@@ -1063,7 +1063,7 @@ qlonglong TorrentImpl::eta() const
seedingTimeEta = 0;
}
return qMin(ratioEta, seedingTimeEta);
return std::min(ratioEta, seedingTimeEta);
}
if (!speedAverage.download) return MAX_ETA;