summaryrefslogtreecommitdiffhomepage
path: root/src/kernel/NeKit/Json.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-21 19:06:44 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-21 19:06:44 +0100
commitf7023f6a08e117d483b5928fd4301062a3384abf (patch)
treef54dd01bc5d631bff278473fed5b481db95771b9 /src/kernel/NeKit/Json.h
parent49557a1b13301be0cf734e9e396940345fe6ee51 (diff)
feat: kernel: JSON/TOML improvements and UPS/Interrupt improvements.
details: - Interrupt: ARM64 specific HAL fix. - UPS: Remove DoVet method. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/kernel/NeKit/Json.h')
-rw-r--r--src/kernel/NeKit/Json.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/kernel/NeKit/Json.h b/src/kernel/NeKit/Json.h
index c2143651..44db52ba 100644
--- a/src/kernel/NeKit/Json.h
+++ b/src/kernel/NeKit/Json.h
@@ -24,12 +24,12 @@
namespace Kernel {
/// ================================================================================
-/// @brief JSON object representation.
+/// @brief JSON Object type.
/// ================================================================================
template <typename CharKind = Char>
class JsonObject final {
public:
- explicit JsonObject() : fUndefined(NO) {
+ JsonObject() : fUndefined(YES) {
KBasicString<CharKind> key = KString(kNeJsonMaxLen);
key += kNeJsonNullValue;
@@ -37,7 +37,7 @@ class JsonObject final {
this->AsValue() = key;
}
- explicit JsonObject(SizeT lhsLen, SizeT rhsLen) : fUndefined(NO), fKey(lhsLen), fValue(rhsLen) {
+ JsonObject(SizeT lhsLen, SizeT rhsLen) : fUndefined(NO), fKey(lhsLen), fValue(rhsLen) {
KBasicString<CharKind> key = KString(lhsLen);
this->AsKey() = key;
@@ -53,7 +53,7 @@ class JsonObject final {
Bool& IsUndefined() { return fUndefined; }
private:
- Bool fUndefined; // is this instance undefined?
+ Bool fUndefined{YES}; // is this instance undefined?
KBasicString<CharKind> fKey;
KBasicString<CharKind> fValue;