mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-31 06:38:22 +00:00
Everywhere: Prefer using "..."sv over StringView { "..." }
This commit is contained in:
parent
ea8ff03475
commit
3bbe86d8ea
Notes:
sideshowbarker
2024-07-18 10:30:27 +09:00
Author: https://github.com/gunnarbeutner
Commit: 3bbe86d8ea
Pull-request: https://github.com/SerenityOS/serenity/pull/8425
11 changed files with 35 additions and 35 deletions
|
@ -158,7 +158,7 @@ String Keypad::to_string() const
|
|||
if (m_frac_length > 0) {
|
||||
// FIXME: This disables the compiletime format string check since we can't parse '}}' here correctly.
|
||||
// remove the 'StringView { }' when that's fixed.
|
||||
builder.appendff(StringView { "{:0{}}" }, m_frac_value.value(), m_frac_length);
|
||||
builder.appendff("{:0{}}"sv, m_frac_value.value(), m_frac_length);
|
||||
}
|
||||
|
||||
return builder.to_string();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue