1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:37:36 +00:00

AK+WebContent: Remove JsonValue::as_{i,u}{32,64}()

This commit is contained in:
Dan Klishch 2023-11-13 22:44:41 -05:00 committed by Andrew Kaster
parent 0388c828be
commit 5230d2af91
4 changed files with 16 additions and 37 deletions

View file

@ -162,16 +162,16 @@ inline void JsonValue::serialize(Builder& builder) const
break;
#endif
case Type::Int32:
builder.appendff("{}", as_i32());
builder.appendff("{}", m_value.as_i32);
break;
case Type::Int64:
builder.appendff("{}", as_i64());
builder.appendff("{}", m_value.as_i64);
break;
case Type::UnsignedInt32:
builder.appendff("{}", as_u32());
builder.appendff("{}", m_value.as_u32);
break;
case Type::UnsignedInt64:
builder.appendff("{}", as_u64());
builder.appendff("{}", m_value.as_u64);
break;
case Type::Null:
builder.append("null"sv);