LibGfx/ISOBMFF: Print only one set of quotes around FourCCs

AK::Formatter<RIFF::ChunkID> (in LibRIFF/ChunkID.h) adds them already,
so don't add them here too.
This commit is contained in:
Nico Weber 2024-03-22 09:15:05 -04:00 committed by Andreas Kling
parent e2bab93fdd
commit b43092db46
Notes: sideshowbarker 2024-07-17 03:18:29 +09:00

View file

@ -69,7 +69,7 @@ template<>
struct AK::Formatter<Gfx::ISOBMFF::BoxType> : Formatter<FormatString> {
ErrorOr<void> format(FormatBuilder& builder, Gfx::ISOBMFF::BoxType const& box_type)
{
StringView format_string = Gfx::ISOBMFF::is_valid_box_type(box_type) ? "('{}')"sv : "Unknown Box ('{}')"sv;
StringView format_string = Gfx::ISOBMFF::is_valid_box_type(box_type) ? "({})"sv : "Unknown Box ({})"sv;
return Formatter<FormatString>::format(builder, format_string, RIFF::ChunkID::from_big_endian_number(to_underlying(box_type)));
}
};