mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-23 07:51:10 +01:00
[saitnize] Minor
This commit is contained in:
1 parent
3ee4ea9456
commit
5000a59a63
1 file changed
+4
-2
+4
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user