[subset-plan] Simplify name_languages allocation

This commit is contained in:
Behdad Esfahbod committed 2023-01-11 10:45:26 -07:00
1 parent e4ca0fe436
commit cfb48f91da
2 files changed
+2 -3

No files matched your search

+1 -1
View File
@@ -843,7 +843,7 @@ hb_subset_plan_create_or_fail (hb_face_t *face,
plan->unicode_to_new_gid_list.init ();
plan->name_ids = hb_set_copy (input->sets.name_ids);
plan->name_languages = hb_set_copy (input->sets.name_languages);
plan->name_languages = *input->sets.name_languages;
plan->layout_features = *input->sets.layout_features;
plan->layout_scripts = *input->sets.layout_scripts;
plan->glyphs_requested = hb_set_copy (input->sets.glyphs);
+1 -2
View File
@@ -50,7 +50,6 @@ struct hb_subset_plan_t
{
hb_set_destroy (unicodes);
hb_set_destroy (name_ids);
hb_set_destroy (name_languages);
hb_set_destroy (glyphs_requested);
hb_set_destroy (drop_tables);
hb_set_destroy (no_subset_tables);
@@ -119,7 +118,7 @@ struct hb_subset_plan_t
hb_set_t *name_ids;
// name_languages we would like to retain
hb_set_t *name_languages;
hb_set_t name_languages;
//layout features which will be preserved
hb_set_t layout_features;