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
Notes: sideshowbarker 2024-07-16 23:59:28 +09:00

View file

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