diff --git a/Userland/Libraries/LibGfx/ImageFormats/ImageDecoder.h b/Userland/Libraries/LibGfx/ImageFormats/ImageDecoder.h index a0d1758e19..521ad7c09d 100644 --- a/Userland/Libraries/LibGfx/ImageFormats/ImageDecoder.h +++ b/Userland/Libraries/LibGfx/ImageFormats/ImageDecoder.h @@ -87,4 +87,19 @@ private: NonnullOwnPtr mutable m_plugin; }; +struct FourCC { + constexpr FourCC(char const* name) + { + cc[0] = name[0]; + cc[1] = name[1]; + cc[2] = name[2]; + cc[3] = name[3]; + } + + bool operator==(FourCC const&) const = default; + bool operator!=(FourCC const&) const = default; + + char cc[4]; +}; + } diff --git a/Userland/Libraries/LibGfx/ImageFormats/WebPLoader.cpp b/Userland/Libraries/LibGfx/ImageFormats/WebPLoader.cpp index c275b4fe90..ae03df8508 100644 --- a/Userland/Libraries/LibGfx/ImageFormats/WebPLoader.cpp +++ b/Userland/Libraries/LibGfx/ImageFormats/WebPLoader.cpp @@ -21,21 +21,6 @@ namespace Gfx { namespace { -struct FourCC { - constexpr FourCC(char const* name) - { - cc[0] = name[0]; - cc[1] = name[1]; - cc[2] = name[2]; - cc[3] = name[3]; - } - - bool operator==(FourCC const&) const = default; - bool operator!=(FourCC const&) const = default; - - char cc[4]; -}; - // https://developers.google.com/speed/webp/docs/riff_container#webp_file_header struct WebPFileHeader { FourCC riff;