From 2265be0a620bc76ab65f12fedde67791beb51314 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 2 May 2013 14:25:09 -0400 Subject: [PATCH] Minor --- src/hb-ot-map-private.hh | 17 ++++++++++------- src/hb-ot-map.cc | 2 ++ src/hb-ot-shape-private.hh | 3 +-- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/hb-ot-map-private.hh b/src/hb-ot-map-private.hh index 62fd605..c811fa4 100644 --- a/src/hb-ot-map-private.hh +++ b/src/hb-ot-map-private.hh @@ -31,8 +31,8 @@ #include "hb-buffer-private.hh" -#include "hb-ot-layout-private.hh" +struct hb_ot_shape_plan_t; static const hb_tag_t table_tags[2] = {HB_OT_TAG_GSUB, HB_OT_TAG_GPOS}; @@ -123,10 +123,11 @@ struct hb_ot_map_t inline void finish (void) { features.finish (); - lookups[0].finish (); - lookups[1].finish (); - stages[0].finish (); - stages[1].finish (); + for (unsigned int table_index = 0; table_index < 2; table_index++) + { + lookups[table_index].finish (); + stages[table_index].finish (); + } } public: @@ -195,8 +196,10 @@ struct hb_ot_map_builder_t inline void finish (void) { feature_infos.finish (); - stages[0].finish (); - stages[1].finish (); + for (unsigned int table_index = 0; table_index < 2; table_index++) + { + stages[table_index].finish (); + } } private: diff --git a/src/hb-ot-map.cc b/src/hb-ot-map.cc index 39929e0..64423cd 100644 --- a/src/hb-ot-map.cc +++ b/src/hb-ot-map.cc @@ -28,6 +28,8 @@ #include "hb-ot-map-private.hh" +#include "hb-ot-layout-private.hh" + void hb_ot_map_t::add_lookups (hb_face_t *face, diff --git a/src/hb-ot-shape-private.hh b/src/hb-ot-shape-private.hh index 9599f8e..8171471 100644 --- a/src/hb-ot-shape-private.hh +++ b/src/hb-ot-shape-private.hh @@ -30,8 +30,7 @@ #include "hb-private.hh" #include "hb-ot-map-private.hh" - - +#include "hb-ot-layout-private.hh" -- 2.7.4