From 0d1ba94ac7910f0fc8232c539d4f6709cd2493fd Mon Sep 17 00:00:00 2001 From: ckitagawa Date: Fri, 24 Jan 2020 15:44:40 -0500 Subject: [PATCH] Minor style fixes --- src/hb-ot-color-colr-table.hh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/hb-ot-color-colr-table.hh b/src/hb-ot-color-colr-table.hh index eca3a55a9..6643b4257 100644 --- a/src/hb-ot-color-colr-table.hh +++ b/src/hb-ot-color-colr-table.hh @@ -1,5 +1,6 @@ /* * Copyright © 2018 Ebrahim Byagowi + * Copyright © 2020 Google, Inc. * * This is part of HarfBuzz, a text shaping library. * @@ -20,6 +21,8 @@ * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. + * + * Google Author(s): Calder Kitagawa */ #ifndef HB_OT_COLOR_COLR_TABLE_HH @@ -115,16 +118,16 @@ struct COLR struct accelerator_t { accelerator_t () {} - ~accelerator_t () { fini(); } + ~accelerator_t () { fini (); } void init (hb_face_t *face) { - colr = hb_sanitize_context_t().reference_table (face); + colr = hb_sanitize_context_t ().reference_table (face); } void fini () { - this->colr.destroy(); + this->colr.destroy (); } bool is_valid () @@ -202,7 +205,7 @@ struct COLR for (unsigned int i = 0; i < layers.length; i++) { hb_codepoint_t new_gid = 0; - if (unlikely (!c->plan->new_gid_for_old_gid (layers[i].glyphId, &new_gid))) return_trace(false); + if (unlikely (!c->plan->new_gid_for_old_gid (layers[i].glyphId, &new_gid))) return_trace (false); LayerRecord* out_layer = c->serializer->start_embed (); if (unlikely (!c->serializer->extend_min (out_layer))) return_trace (false); @@ -231,7 +234,7 @@ struct COLR const BaseGlyphRecord* record = &(this+baseGlyphsZ).bsearch (numBaseGlyphs, old_gid); if (record && (hb_codepoint_t) record->glyphId != old_gid) record = nullptr; - return hb_pair_t(new_gid, record); + return hb_pair_t (new_gid, record); }) | hb_filter (hb_second) ;