From 723b05107d83c67419734414e9185b1bd82f3291 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Sun, 10 Feb 2019 00:49:36 +0000 Subject: [PATCH] Use strongly typed enum for Capacity:Unit. --- src/util/capacity.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/capacity.h b/src/util/capacity.h index 1346080..632e847 100644 --- a/src/util/capacity.h +++ b/src/util/capacity.h @@ -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 */