mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-25 10:48:53 +00:00
AK: Use new format functions.
This commit is contained in:
parent
560c52989c
commit
1d96d5eea4
Notes:
sideshowbarker
2024-07-19 01:58:58 +09:00
Author: https://github.com/asynts
Commit: 1d96d5eea4
Pull-request: https://github.com/SerenityOS/serenity/pull/3705
Reviewed-by: https://github.com/awesomekling
13 changed files with 74 additions and 91 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue