Use one-liner methods

This commit is contained in:
ckitagawa committed 2020-01-28 15:35:53 -05:00
1 parent 81c469eb62
commit 0aed54dca6
1 file changed
+4 -14
+4 -14
View File
@@ -121,25 +121,15 @@ struct COLR
~accelerator_t () { fini (); }
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 ()
{
this->colr.destroy ();
}
void fini () { this->colr.destroy (); }
bool is_valid ()
{
return colr.get_blob ()->length;
}
bool is_valid () { return colr.get_blob ()->length; }
void get_related_glyphs (hb_codepoint_t glyph,
hb_set_t *related_ids /* OUT */) const
{
colr->get_related_glyphs (glyph, related_ids);
}
{ colr->get_related_glyphs (glyph, related_ids); }
private:
hb_blob_ptr_t<COLR> colr;