Use std::optional to return results

This commit is contained in:
Chocobo1 2021-02-09 12:55:22 +08:00
parent fffe5e7003
commit 4a0b36a50b
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
2 changed files with 21 additions and 15 deletions

View file

@ -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);