From: Behdad Esfahbod Date: Mon, 25 Jul 2011 04:36:01 +0000 (-0400) Subject: Minor X-Git-Tag: submit/2.0alpha-wayland/20121130.004132~9^2~40 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d8787493c9aa420544096cef07c29a591a0c1a99;p=profile%2Fivi%2Forg.tizen.video-player.git Minor --- diff --git a/src/hb-ot-layout-gsub-private.hh b/src/hb-ot-layout-gsub-private.hh index 09ebc31..b9161bf 100644 --- a/src/hb-ot-layout-gsub-private.hh +++ b/src/hb-ot-layout-gsub-private.hh @@ -407,12 +407,6 @@ struct Ligature return true; } - inline uint16_t allocate_lig_id (hb_buffer_t *buffer) const { - uint16_t lig_id = buffer->next_serial (); - if (unlikely (!lig_id)) lig_id = buffer->next_serial (); /* in case of overflow */ - return lig_id; - } - public: inline bool sanitize (hb_sanitize_context_t *c) { TRACE_SANITIZE (); diff --git a/src/hb-ot-layout-gsubgpos-private.hh b/src/hb-ot-layout-gsubgpos-private.hh index 7ccbdf0..8be4312 100644 --- a/src/hb-ot-layout-gsubgpos-private.hh +++ b/src/hb-ot-layout-gsubgpos-private.hh @@ -39,6 +39,13 @@ HB_BEGIN_DECLS #define lig_id() var2.u16[0] /* unique ligature id */ #define lig_comp() var2.u16[1] /* component number in the ligature (0 = base) */ +static inline uint16_t allocate_lig_id (hb_buffer_t *buffer) { + uint16_t lig_id = buffer->next_serial (); + if (unlikely (!lig_id)) lig_id = buffer->next_serial (); /* in case of overflow */ + return lig_id; +} + + #ifndef HB_DEBUG_APPLY #define HB_DEBUG_APPLY (HB_DEBUG+0)