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

[set] Rename

上级 e8669105
...@@ -341,11 +341,11 @@ struct hb_set_t ...@@ -341,11 +341,11 @@ struct hb_set_t
{ {
/* TODO perform op even if !successful. */ /* TODO perform op even if !successful. */
if (unlikely (!successful)) return; if (unlikely (!successful)) return;
page_t *p = page_for (g); page_t *page = page_for (g);
if (!p) if (!page)
return; return;
dirty (); dirty ();
p->del (g); page->del (g);
} }
inline void del_range (hb_codepoint_t a, hb_codepoint_t b) inline void del_range (hb_codepoint_t a, hb_codepoint_t b)
{ {
...@@ -357,10 +357,10 @@ struct hb_set_t ...@@ -357,10 +357,10 @@ struct hb_set_t
} }
inline bool has (hb_codepoint_t g) const inline bool has (hb_codepoint_t g) const
{ {
const page_t *p = page_for (g); const page_t *page = page_for (g);
if (!p) if (!page)
return false; return false;
return p->has (g); return page->has (g);
} }
inline bool intersects (hb_codepoint_t first, inline bool intersects (hb_codepoint_t first,
hb_codepoint_t last) const hb_codepoint_t last) const
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册