Use one-liner methods

This commit is contained in:
ckitagawa 2020-01-24 15:51:06 -05:00
parent 81c469eb62
commit 0aed54dca6
1 changed files with 4 additions and 14 deletions

View File

@ -121,25 +121,15 @@ struct COLR
~accelerator_t () { fini (); } ~accelerator_t () { fini (); }
void init (hb_face_t *face) void init (hb_face_t *face)
{ { colr = hb_sanitize_context_t ().reference_table<COLR> (face); }
colr = hb_sanitize_context_t ().reference_table<COLR> (face);
}
void fini () void fini () { this->colr.destroy (); }
{
this->colr.destroy ();
}
bool is_valid () bool is_valid () { return colr.get_blob ()->length; }
{
return colr.get_blob ()->length;
}
void get_related_glyphs (hb_codepoint_t glyph, void get_related_glyphs (hb_codepoint_t glyph,
hb_set_t *related_ids /* OUT */) const hb_set_t *related_ids /* OUT */) const
{ { colr->get_related_glyphs (glyph, related_ids); }
colr->get_related_glyphs (glyph, related_ids);
}
private: private:
hb_blob_ptr_t<COLR> colr; hb_blob_ptr_t<COLR> colr;