diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-29 15:01:34 -0500 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-29 15:01:34 -0500 |
| commit | ceabd82ac8e796249feacf39c836034ed5e11c6d (patch) | |
| tree | e446d471a0eaf4ed7ac67e878ce4fb02334a2acb /src/kernel/NeKit/Variant.h | |
| parent | 0376382a848ef5ebbb0e02428c9d1df8a099d8b4 (diff) | |
chore: source code review and fixes.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/kernel/NeKit/Variant.h')
| -rw-r--r-- | src/kernel/NeKit/Variant.h | 8 |
1 files changed, 4 insertions, 4 deletions
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 <NeKit/Defines.h> #include <NeKit/Json.h> -#include <NeKit/TOML.h> #include <NeKit/KString.h> +#include <NeKit/TOML.h> #include <SwapKit/DiskSwap.h> 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 <typename T> - T* As() noexcept { + T* As() { return reinterpret_cast<T*>(fPtr); } |
