Преглед на файлове

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.
Nico Weber преди 1 година
родител
ревизия
b43092db46
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Userland/Libraries/LibGfx/ImageFormats/ISOBMFF/Enums.h

+ 1 - 1
Userland/Libraries/LibGfx/ImageFormats/ISOBMFF/Enums.h

@@ -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)));
     }
 };