mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
AK: Rename Stream::format()
to Stream::write_formatted()
This brings the function name in line with how we usually name those functions, which is with a `read_` or `write_` prefix depending on what they do. While at it, make the internal `_impl` function private and not-virtual, since there is no good reason to ever override that function.
This commit is contained in:
parent
ddbe65e2f8
commit
5e7c838160
Notes:
sideshowbarker
2024-07-16 23:38:54 +09:00
Author: https://github.com/timschumi
Commit: 5e7c838160
Pull-request: https://github.com/SerenityOS/serenity/pull/18498
Reviewed-by: https://github.com/Popaulol ✅
3 changed files with 8 additions and 7 deletions
|
@ -141,9 +141,9 @@ ErrorOr<void> js_out(JS::PrintContext& print_context, CheckedFormatString<Args..
|
|||
{
|
||||
if (print_context.strip_ansi) {
|
||||
auto format_string_without_ansi = TRY(strip_ansi(format_string.view()));
|
||||
TRY(print_context.stream.format(format_string_without_ansi, args...));
|
||||
TRY(print_context.stream.write_formatted(format_string_without_ansi, args...));
|
||||
} else {
|
||||
TRY(print_context.stream.format(format_string.view(), args...));
|
||||
TRY(print_context.stream.write_formatted(format_string.view(), args...));
|
||||
}
|
||||
|
||||
return {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue