diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-29 18:17:47 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-29 18:18:59 +0100 |
| commit | 65254486efff0fd1bb78a48ff90b7713a5ce539f (patch) | |
| tree | 20ce02c12a74ba9e6cd382bf9c1f09a0c611cb4d /Private/Source/Variant.cxx | |
| parent | f03986937db0b927da4b10554801e18e4dc7c43f (diff) | |
Kernel: Update TODO.
Src: Refactorings according to clang-format.
Meta: Update specification.
Public: Remove useless UIKit.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/Source/Variant.cxx')
| -rw-r--r-- | Private/Source/Variant.cxx | 34 |
1 files changed, 15 insertions, 19 deletions
diff --git a/Private/Source/Variant.cxx b/Private/Source/Variant.cxx index 3881a07d..cb1a9a01 100644 --- a/Private/Source/Variant.cxx +++ b/Private/Source/Variant.cxx @@ -9,24 +9,20 @@ #include <NewKit/Variant.hpp> -namespace hCore -{ - const Char* Variant::ToString() - { - if (m_Ptr == nullptr) - { - return ("Memory:{Nullptr}"); - } +namespace hCore { +const Char* Variant::ToString() { + if (m_Ptr == nullptr) { + return ("Memory:{Nullptr}"); + } - switch (m_Kind) - { - case VariantKind::kString: - return ("Class:{String}"); - case VariantKind::kPointer: - return ("Memory:{Pointer}"); - default: - return ("Class:{Undefined}"); - } - } + switch (m_Kind) { + case VariantKind::kString: + return ("Class:{String}"); + case VariantKind::kPointer: + return ("Memory:{Pointer}"); + default: + return ("Class:{Undefined}"); + } +} -} // namespace hCore +} // namespace hCore |
