1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:27:45 +00:00

LibGfx: Fix 7-bit ASCII checks in textDescriptionType and textType

This used to check the empty, moved-from parameter instead of
the member variable (-‸ლ)
This commit is contained in:
Nico Weber 2023-02-19 09:44:10 -05:00 committed by Andreas Kling
parent 8f181e0e94
commit 51be964884

View file

@ -746,7 +746,7 @@ public:
, m_unicode_description(move(unicode_description)) , m_unicode_description(move(unicode_description))
, m_macintosh_description(move(macintosh_description)) , m_macintosh_description(move(macintosh_description))
{ {
for (u8 byte : ascii_description.bytes()) for (u8 byte : m_ascii_description.bytes())
VERIFY(byte < 128); VERIFY(byte < 128);
} }
@ -778,7 +778,7 @@ public:
: TagData(offset, size, Type) : TagData(offset, size, Type)
, m_text(move(text)) , m_text(move(text))
{ {
for (u8 byte : text.bytes()) for (u8 byte : m_text.bytes())
VERIFY(byte < 128); VERIFY(byte < 128);
} }