mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
Everywhere: Remove sv
suffix from format string literals
This prevents the compile-time checks that would catch errors in the format invocation (which would usually lead to a runtime crash).
This commit is contained in:
parent
917537b449
commit
f070264800
Notes:
github-actions[bot]
2025-04-09 00:01:12 +00:00
Author: https://github.com/trflynn89
Commit: f070264800
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4286
28 changed files with 51 additions and 51 deletions
|
@ -117,7 +117,7 @@ struct AK::Formatter<Diff::HunkLocation> : Formatter<FormatString> {
|
|||
static ErrorOr<void> format(FormatBuilder& format_builder, Diff::HunkLocation const& location)
|
||||
{
|
||||
auto& builder = format_builder.builder();
|
||||
TRY(builder.try_appendff("@@ -{}"sv, location.old_range.start_line));
|
||||
TRY(builder.try_appendff("@@ -{}", location.old_range.start_line));
|
||||
|
||||
if (location.old_range.number_of_lines != 1)
|
||||
TRY(builder.try_appendff(",{}", location.old_range.number_of_lines));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue