Use strongly typed enum for Capacity:Unit.
This commit is contained in:
parent
28e1308ec5
commit
723b05107d
|
@ -36,7 +36,7 @@ class LIBKPMCORE_EXPORT Capacity
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/** Units we can deal with */
|
/** Units we can deal with */
|
||||||
enum Unit : uint { Byte, KiB, MiB, GiB, TiB, PiB, EiB, ZiB, YiB };
|
enum class Unit : uint { Byte, KiB, MiB, GiB, TiB, PiB, EiB, ZiB, YiB };
|
||||||
/** Type of capacity to print */
|
/** Type of capacity to print */
|
||||||
enum class Type { Used, Available, Total };
|
enum class Type { Used, Available, Total };
|
||||||
/** Flags for printing */
|
/** Flags for printing */
|
||||||
|
|
Loading…
Reference in New Issue