mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:17:35 +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:
parent
8f181e0e94
commit
51be964884
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue