From 407bba3e0d591a5708955e76ae914aa67198044e Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Fri, 19 Jun 2020 23:12:42 +0430 Subject: [PATCH] minor move FeatureParamsCharacterVariants::sanitize method right above members --- src/hb-ot-layout-common.hh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/hb-ot-layout-common.hh b/src/hb-ot-layout-common.hh index 07b370691..1062d7c27 100644 --- a/src/hb-ot-layout-common.hh +++ b/src/hb-ot-layout-common.hh @@ -805,13 +805,6 @@ struct FeatureParamsStylisticSet /* https://docs.microsoft.com/en-us/typography/opentype/spec/features_ae#cv01-cv99 */ struct FeatureParamsCharacterVariants { - bool sanitize (hb_sanitize_context_t *c) const - { - TRACE_SANITIZE (this); - return_trace (c->check_struct (this) && - characters.sanitize (c)); - } - unsigned get_size () const { return min_size + characters.len * HBUINT24::static_size; } @@ -821,6 +814,13 @@ struct FeatureParamsCharacterVariants return_trace ((bool) c->serializer->embed (*this)); } + bool sanitize (hb_sanitize_context_t *c) const + { + TRACE_SANITIZE (this); + return_trace (c->check_struct (this) && + characters.sanitize (c)); + } + HBUINT16 format; /* Format number is set to 0. */ NameID featUILableNameID; /* The ‘name’ table name ID that * specifies a string (or strings,