From ceabd82ac8e796249feacf39c836034ed5e11c6d Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 29 Nov 2025 15:01:34 -0500 Subject: chore: source code review and fixes. Signed-off-by: Amlal El Mahrouss --- src/kernel/NeKit/Variant.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/kernel/NeKit/Variant.h') diff --git a/src/kernel/NeKit/Variant.h b/src/kernel/NeKit/Variant.h index 7bcd0dff..1b0fbe5d 100644 --- a/src/kernel/NeKit/Variant.h +++ b/src/kernel/NeKit/Variant.h @@ -8,8 +8,8 @@ #include #include -#include #include +#include #include namespace Kernel { @@ -17,7 +17,7 @@ class Variant final { public: enum class VariantKind { kInvalid = 0, - kString = 200, + kString = 200, kBlob, kNull, kJson, @@ -55,10 +55,10 @@ class Variant final { /// @brief Returns the underlying pointer. /// @return the underlying pointer. /// ======================================================================== - VoidPtr Leak(); + VoidPtr Leak(); template - T* As() noexcept { + T* As() { return reinterpret_cast(fPtr); } -- cgit v1.2.3