提交 d1af9e82 编写于 作者: B Behdad Esfahbod

[GSUB/GPOS] Const correctness

上级 baacd090
...@@ -42,12 +42,12 @@ set_lig_props (hb_glyph_info_t &info, unsigned int lig_id, unsigned int lig_comp ...@@ -42,12 +42,12 @@ set_lig_props (hb_glyph_info_t &info, unsigned int lig_id, unsigned int lig_comp
info.lig_props() = (lig_id << 4) | (lig_comp & 0x0F); info.lig_props() = (lig_id << 4) | (lig_comp & 0x0F);
} }
static inline unsigned int static inline unsigned int
get_lig_id (hb_glyph_info_t &info) get_lig_id (const hb_glyph_info_t &info)
{ {
return info.lig_props() >> 4; return info.lig_props() >> 4;
} }
static inline unsigned int static inline unsigned int
get_lig_comp (hb_glyph_info_t &info) get_lig_comp (const hb_glyph_info_t &info)
{ {
return info.lig_props() & 0x0F; return info.lig_props() & 0x0F;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册