提交 56e0fd34 编写于 作者: B Behdad Esfahbod

Remove last use of hb_auto_t<>

上级 ca5e5a49
......@@ -228,6 +228,10 @@ struct CmapSubtableFormat4
struct accelerator_t
{
inline accelerator_t (void) {}
inline accelerator_t (const CmapSubtableFormat4 *subtable) { init (subtable); }
inline ~accelerator_t (void) { fini (); }
inline void init (const CmapSubtableFormat4 *subtable)
{
segCount = subtable->segCountX2 / 2;
......@@ -327,12 +331,12 @@ struct CmapSubtableFormat4
inline bool get_glyph (hb_codepoint_t codepoint, hb_codepoint_t *glyph) const
{
hb_auto_t<accelerator_t> accel (this);
accelerator_t accel (this);
return accel.get_glyph_func (&accel, codepoint, glyph);
}
inline void collect_unicodes (hb_set_t *out) const
{
hb_auto_t<accelerator_t> accel (this);
accelerator_t accel (this);
accel.collect_unicodes (out);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册