From e81009b3389cf508688d07e384dc1118f36cdb09 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 22 Mar 2024 11:56:10 -0400 Subject: [PATCH] LibGfx/ISOBMFF: Put string literals in box type ENUMERATE_ONE() This allows types that have spaces in their FourCC. --- .../Libraries/LibGfx/ImageFormats/ISOBMFF/Enums.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Userland/Libraries/LibGfx/ImageFormats/ISOBMFF/Enums.h b/Userland/Libraries/LibGfx/ImageFormats/ISOBMFF/Enums.h index 02073340314..64fbb9e900a 100644 --- a/Userland/Libraries/LibGfx/ImageFormats/ISOBMFF/Enums.h +++ b/Userland/Libraries/LibGfx/ImageFormats/ISOBMFF/Enums.h @@ -13,17 +13,17 @@ namespace Gfx::ISOBMFF { // Define all Box types: -#define ENUMERATE_ALL() \ - ENUMERATE_ONE(FileTypeBox, ftyp) \ - ENUMERATE_ONE(MetaBox, meta) \ - ENUMERATE_ONE(MovieBox, moov) \ - ENUMERATE_ONE(MediaDataBox, mdat) \ - ENUMERATE_ONE(FreeBox, free) +#define ENUMERATE_ALL() \ + ENUMERATE_ONE(FileTypeBox, "ftyp") \ + ENUMERATE_ONE(MetaBox, "meta") \ + ENUMERATE_ONE(MovieBox, "moov") \ + ENUMERATE_ONE(MediaDataBox, "mdat") \ + ENUMERATE_ONE(FreeBox, "free") enum class BoxType : u32 { None = 0, -#define ENUMERATE_ONE(box_name, box_4cc) box_name = RIFF::ChunkID(#box_4cc).as_number(), +#define ENUMERATE_ONE(box_name, box_4cc) box_name = RIFF::ChunkID(box_4cc).as_number(), ENUMERATE_ALL()