Use strongly typed enum for Capacity:Unit.

This commit is contained in:
Andrius Štikonas 2019-02-10 00:49:36 +00:00
parent 28e1308ec5
commit 723b05107d
Signed by: andrius
GPG Key ID: E2E5CD054CB9CD3E
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class LIBKPMCORE_EXPORT Capacity
{
public:
/** 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 */
enum class Type { Used, Available, Total };
/** Flags for printing */