From 1cb621d35d1e8e47d868f4ef6a9d186aa835e708 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 12 Aug 2021 10:58:19 -0600 Subject: [PATCH] [util/hb-subset] Minor move parsing --- util/hb-subset.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/util/hb-subset.cc b/util/hb-subset.cc index 9d8d0c229..d3812a39c 100644 --- a/util/hb-subset.cc +++ b/util/hb-subset.cc @@ -46,10 +46,15 @@ struct subset_main_t : option_parser_t, face_options_t, output_options_t hb_subset_input_destroy (input); } - int operator () (int argc, char **argv) + void parse (int argc, char **argv) { add_options (); - parse (&argc, &argv); + option_parser_t::parse (&argc, &argv); + } + + int operator () (int argc, char **argv) + { + parse (argc, argv); hb_face_t *new_face = nullptr; for (unsigned i = 0; i < num_iterations; i++)