summaryrefslogtreecommitdiff
path: root/src/hb-set.cc
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2018-05-31 20:20:17 -0700
committerBehdad Esfahbod <behdad@behdad.org>2018-05-31 20:20:17 -0700
commit7b50bf52f274f75f0b41008e0eab150124ae928a (patch)
tree58777086735ffeda3d39245a273d185113b67b5c /src/hb-set.cc
parentf040ca40ab3ebd4fdb85747477e0e656ab8b073e (diff)
Use NullPool for _hb_set_nil and _hb_map_nil
Diffstat (limited to 'src/hb-set.cc')
-rw-r--r--src/hb-set.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/hb-set.cc b/src/hb-set.cc
index 605267e5..b5753222 100644
--- a/src/hb-set.cc
+++ b/src/hb-set.cc
@@ -50,12 +50,6 @@ hb_set_create (void)
return set;
}
-static const hb_set_t _hb_set_nil = {
- HB_OBJECT_HEADER_STATIC,
- false, /* successful */
- 0, /* population */
-};
-
/**
* hb_set_get_empty:
*
@@ -66,7 +60,7 @@ static const hb_set_t _hb_set_nil = {
hb_set_t *
hb_set_get_empty (void)
{
- return const_cast<hb_set_t *> (&_hb_set_nil);
+ return const_cast<hb_set_t *> (&Null(hb_set_t));
}
/**