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/Json.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/Json.h')
| -rw-r--r-- | src/kernel/NeKit/Json.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/kernel/NeKit/Json.h b/src/kernel/NeKit/Json.h index 1e804354..82ce3b99 100644 --- a/src/kernel/NeKit/Json.h +++ b/src/kernel/NeKit/Json.h @@ -34,16 +34,15 @@ class JsonObject final { key += kNeJsonNullValue; this->AsKey() = key; - this->AsValue() = key; + this->AsValue() = key; } explicit JsonObject(SizeT lhsLen, SizeT rhsLen) : fKey(lhsLen), fValue(rhsLen) { - KBasicString<CharKind> key = KString(lhsLen); - this->AsKey() = key; + this->AsKey() = key; KBasicString<CharKind> value = KString(rhsLen); - this->AsValue() = value; + this->AsValue() = value; } ~JsonObject() = default; @@ -54,7 +53,7 @@ class JsonObject final { Bool& IsUndefined() { return fUndefined; } private: - Bool fUndefined; // is this instance undefined? + Bool fUndefined; // is this instance undefined? KBasicString<CharKind> fKey; KBasicString<CharKind> fValue; |
