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
Notes:
sideshowbarker
2024-07-16 23:59:28 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/51be964884 Pull-request: https://github.com/SerenityOS/serenity/pull/17546
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue