commit | ef00654962204ae706b276871e2b6758fbbf69e0 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Tue Jan 22 12:08:57 2019 +0100 |
committer | Behdad Esfahbod <behdad@behdad.org> | Tue Jan 22 12:17:26 2019 +0100 |
tree | 34d6b1e8969a7118269bae09b6781363f3e99135 | |
parent | 39e1b6d03f71ccb8f18d64dfbff64acfaf02970b [diff] [blame] |
Convert tag enum class consts to static constexpr Part of https://github.com/harfbuzz/harfbuzz/issues/1553
diff --git a/src/hb-ot-layout-base-table.hh b/src/hb-ot-layout-base-table.hh index 6c39932..dd0fba1 100644 --- a/src/hb-ot-layout-base-table.hh +++ b/src/hb-ot-layout-base-table.hh
@@ -464,7 +464,7 @@ struct BASE { - enum { tableTag = HB_OT_TAG_BASE }; + static constexpr hb_tag_t tableTag = HB_OT_TAG_BASE; const Axis &get_axis (hb_direction_t direction) const { return HB_DIRECTION_IS_VERTICAL (direction) ? this+vAxis : this+hAxis; }