[name] Use variable forwarding to simplify sanitize()
This commit is contained in:
parent
bf91b418b0
commit
87810fc958
|
@ -306,11 +306,8 @@ struct name
|
||||||
{
|
{
|
||||||
TRACE_SANITIZE (this);
|
TRACE_SANITIZE (this);
|
||||||
const void *string_pool = (this+stringOffset).arrayZ;
|
const void *string_pool = (this+stringOffset).arrayZ;
|
||||||
unsigned int _count = count;
|
/* TODO: Move to run-time?! */
|
||||||
/* Move to run-time?! */
|
return_trace (nameRecordZ.sanitize (c, count, string_pool));
|
||||||
for (unsigned int i = 0; i < _count; i++)
|
|
||||||
if (!nameRecordZ[i].sanitize (c, string_pool)) return_trace (false);
|
|
||||||
return_trace (true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool sanitize (hb_sanitize_context_t *c) const
|
bool sanitize (hb_sanitize_context_t *c) const
|
||||||
|
|
Loading…
Reference in New Issue