mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:08:11 +00:00
AK: Pass AK::Format TypeErasedFormatParams by reference in AK::String
This silences a overeager warning in sonar cloud, warning that
slicing could occur with `VariadicFormatParams` which derives from
`TypeErasedFormatParams`.
Reference:
https://sonarcloud.io/project/issues?id=SerenityOS_serenity&issues=AXuVPBW3k92xXUF3qXTE&open=AXuVPBW3k92xXUF3qXTE
This is a continuation of f0b3aa0331
.
This commit is contained in:
parent
8105d3f3d6
commit
fee2a03ba9
2 changed files with 4 additions and 3 deletions
|
@ -515,7 +515,7 @@ InputStream& operator>>(InputStream& stream, String& string)
|
|||
}
|
||||
}
|
||||
|
||||
String String::vformatted(StringView fmtstr, TypeErasedFormatParams params)
|
||||
String String::vformatted(StringView fmtstr, TypeErasedFormatParams& params)
|
||||
{
|
||||
StringBuilder builder;
|
||||
vformat(builder, fmtstr, params);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue