mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Use std::optional to return results
This commit is contained in:
parent
fffe5e7003
commit
4a0b36a50b
2 changed files with 21 additions and 15 deletions
|
@ -73,7 +73,7 @@ namespace Utils::Misc
|
|||
|
||||
// return the best user friendly storage unit (B, KiB, MiB, GiB, TiB)
|
||||
// value must be given in bytes
|
||||
QString friendlyUnit(qint64 bytesValue, bool isSpeed = false);
|
||||
QString friendlyUnit(qint64 bytes, bool isSpeed = false);
|
||||
int friendlyUnitPrecision(SizeUnit unit);
|
||||
qint64 sizeInBytes(qreal size, SizeUnit unit);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue