[saitnize] Minor
This commit is contained in:
parent
3ee4ea9456
commit
5000a59a63
|
@ -386,8 +386,10 @@ struct hb_sanitize_context_t :
|
|||
}
|
||||
|
||||
template <typename Type, typename ValueType>
|
||||
bool try_set (const Type *obj, const ValueType &v) {
|
||||
if (this->may_edit (obj, obj->static_size)) {
|
||||
bool try_set (const Type *obj, const ValueType &v)
|
||||
{
|
||||
if (this->may_edit (obj, hb_static_size (Type)))
|
||||
{
|
||||
const_cast<Type *> (obj)->set (v);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue