mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +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:
committed by
Andreas Kling
parent
8105d3f3d6
commit
fee2a03ba9
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user