1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:17:35 +00:00

AK: Use new format functions.

This commit is contained in:
asynts 2020-10-07 14:02:42 +02:00 committed by Andreas Kling
parent 560c52989c
commit 1d96d5eea4
13 changed files with 74 additions and 91 deletions

View file

@ -182,7 +182,7 @@ inline void JsonValue::serialize(Builder& builder) const
builder.append("\\\\");
break;
default:
builder.appendf("%c", ch);
builder.append(ch);
}
}
builder.append("\"");
@ -202,16 +202,16 @@ inline void JsonValue::serialize(Builder& builder) const
break;
#endif
case Type::Int32:
builder.appendf("%d", as_i32());
builder.appendff("{}", as_i32());
break;
case Type::Int64:
builder.appendf("%lld", as_i64());
builder.appendff("{}", as_i64());
break;
case Type::UnsignedInt32:
builder.appendf("%u", as_u32());
builder.appendff("{}", as_u32());
break;
case Type::UnsignedInt64:
builder.appendf("%llu", as_u64());
builder.appendff("{}", as_u64());
break;
case Type::Null:
builder.append("null");