From 170b5dd856b1ba8f26e79863fe0c64a52eb68951 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 8 Sep 2019 16:34:11 -0400 Subject: [PATCH] [aat] Minor --- src/hb-aat-layout-morx-table.hh | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/hb-aat-layout-morx-table.hh b/src/hb-aat-layout-morx-table.hh index 21cc08a74..b4ce9f99c 100644 --- a/src/hb-aat-layout-morx-table.hh +++ b/src/hb-aat-layout-morx-table.hh @@ -1080,9 +1080,11 @@ struct Chain * The 'mort'/'morx' Table */ -template +template struct mortmorx { + static constexpr hb_tag_t tableTag = TAG; + bool has_data () const { return version != 0; } void compile_flags (const hb_aat_map_builder_t *mapper, @@ -1141,14 +1143,8 @@ struct mortmorx DEFINE_SIZE_MIN (8); }; -struct morx : mortmorx -{ - static constexpr hb_tag_t tableTag = HB_AAT_TAG_morx; -}; -struct mort : mortmorx -{ - static constexpr hb_tag_t tableTag = HB_AAT_TAG_mort; -}; +struct morx : mortmorx {}; +struct mort : mortmorx {}; } /* namespace AAT */