summaryrefslogtreecommitdiff
path: root/thirdparty/harfbuzz/src/hb-ot-meta-table.hh
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-02-02 22:17:43 +0100
committerGitHub <noreply@github.com>2022-02-02 22:17:43 +0100
commit5f3f0b5e00a2e692a282d087321b647f1a274315 (patch)
tree5b396972281fd9029317d993d0543b859ae13013 /thirdparty/harfbuzz/src/hb-ot-meta-table.hh
parent7be7623d693a4328d8ef1947e16ff3d1d70daa65 (diff)
parent5676b3c022874c6a636073792e4be5ee3abd170d (diff)
Merge pull request #57563 from bruvzg/hb331
Diffstat (limited to 'thirdparty/harfbuzz/src/hb-ot-meta-table.hh')
-rw-r--r--thirdparty/harfbuzz/src/hb-ot-meta-table.hh8
1 files changed, 5 insertions, 3 deletions
diff --git a/thirdparty/harfbuzz/src/hb-ot-meta-table.hh b/thirdparty/harfbuzz/src/hb-ot-meta-table.hh
index e31447f8fc..93e64c5327 100644
--- a/thirdparty/harfbuzz/src/hb-ot-meta-table.hh
+++ b/thirdparty/harfbuzz/src/hb-ot-meta-table.hh
@@ -71,9 +71,9 @@ struct meta
struct accelerator_t
{
- void init (hb_face_t *face)
+ accelerator_t (hb_face_t *face)
{ table = hb_sanitize_context_t ().reference_table<meta> (face); }
- void fini () { table.destroy (); }
+ ~accelerator_t () { table.destroy (); }
hb_blob_t *reference_entry (hb_tag_t tag) const
{ return table->dataMaps.lsearch (tag).reference_entry (table.get_blob ()); }
@@ -119,7 +119,9 @@ struct meta
DEFINE_SIZE_ARRAY (16, dataMaps);
};
-struct meta_accelerator_t : meta::accelerator_t {};
+struct meta_accelerator_t : meta::accelerator_t {
+ meta_accelerator_t (hb_face_t *face) : meta::accelerator_t (face) {}
+};
} /* namespace OT */