mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
AK+Everywhere: Remove the char const* JSON value constructor
This commit is contained in:
Notes:
github-actions[bot]
2025-02-21 00:29:35 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/70eb0ba1cd6 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3631 Reviewed-by: https://github.com/awesomekling ✅
@@ -752,8 +752,8 @@ void ArgsParser::autocomplete(FILE* file, StringView program_name, ReadonlySpan<
|
||||
object.set("completion", ByteString::formatted(StringView { format, strlen(format) }, args...));
|
||||
object.set("static_offset", 0);
|
||||
object.set("invariant_offset", has_invariant ? option_to_complete.length() : 0u);
|
||||
object.set("display_trivia", option.help_string);
|
||||
object.set("trailing_trivia", option.argument_mode == OptionArgumentMode::Required ? " " : "");
|
||||
object.set("display_trivia", StringView { option.help_string, strlen(option.help_string) });
|
||||
object.set("trailing_trivia", option.argument_mode == OptionArgumentMode::Required ? " "sv : ""sv);
|
||||
outln(file, "{}", object.to_byte_string());
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user