1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:58:11 +00:00

LibGfx: Give PrefixCodeGroup a deleted copy ctor

This makes the accidental copy fixed in 2125ccdc19 a compile error.

No behavior change.
This commit is contained in:
Nico Weber 2023-04-08 13:00:00 -04:00 committed by Linus Groh
parent a34b300393
commit 82182f4560

View file

@ -356,6 +356,10 @@ ErrorOr<u32> CanonicalCode::read_symbol(LittleEndianInputBitStream& bit_stream)
// "From here on, we refer to this set as a prefix code group."
class PrefixCodeGroup {
public:
PrefixCodeGroup() = default;
PrefixCodeGroup(PrefixCodeGroup&&) = default;
PrefixCodeGroup(PrefixCodeGroup const&) = delete;
CanonicalCode& operator[](int i) { return m_codes[i]; }
CanonicalCode const& operator[](int i) const { return m_codes[i]; }