Use std::optional to return results

This commit is contained in:
Chocobo1
2021-02-09 12:55:22 +08:00
committed by sledgehammer999
parent 2c5271b3b2
commit b20a3c5b8e
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);