From e6768dc3b6c7864166211fd6e2f67ff4e5a2cbe5 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 8 Dec 2025 03:56:42 -0500 Subject: chore: use `enum struct` instead of `enum class`. chore: build scripts improvements. Signed-off-by: Amlal El Mahrouss --- src/kernel/NeKit/Config.h | 2 +- src/kernel/NeKit/Variant.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/NeKit') diff --git a/src/kernel/NeKit/Config.h b/src/kernel/NeKit/Config.h index 071018eb..f8414069 100644 --- a/src/kernel/NeKit/Config.h +++ b/src/kernel/NeKit/Config.h @@ -79,7 +79,7 @@ using Lba = UInt64; using Char16 = char16_t; -enum class Endian : UInt8 { kEndianInvalid, kEndianBig, kEndianLittle, kEndianMixed, kEndianCount }; +enum struct Endian : UInt8 { kEndianInvalid, kEndianBig, kEndianLittle, kEndianMixed, kEndianCount }; /// @brief Forward object. /// @tparam Args the object type. diff --git a/src/kernel/NeKit/Variant.h b/src/kernel/NeKit/Variant.h index a7257805..bf2b53c4 100644 --- a/src/kernel/NeKit/Variant.h +++ b/src/kernel/NeKit/Variant.h @@ -15,7 +15,7 @@ namespace Kernel { class Variant final { public: - enum class VariantKind { + enum struct VariantKind { kInvalid = 0, kString = 200, kBlob, -- cgit v1.2.3