AK: Replace C-style casts

This commit is contained in:
Sam Atkins 2023-03-07 14:28:21 +00:00 committed by Andreas Kling
commit 067d0689c5
Notes: sideshowbarker 2024-07-18 22:57:59 +09:00
14 changed files with 49 additions and 49 deletions

View file

@ -276,7 +276,7 @@ public:
{
if (buffer.is_empty())
return empty();
return DeprecatedString((char const*)buffer.data(), buffer.size(), should_chomp);
return DeprecatedString(reinterpret_cast<char const*>(buffer.data()), buffer.size(), should_chomp);
}
[[nodiscard]] static DeprecatedString vformatted(StringView fmtstr, TypeErasedFormatParams&);