From 2e639c47c9d35ff7dc4dde21f744f9ee695a27f3 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Wed, 31 Oct 2018 14:20:14 +0330 Subject: [PATCH] [aat] Fix older compilers by not referencing enum directly (#1340) --- src/hb-aat-layout-morx-table.hh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/hb-aat-layout-morx-table.hh b/src/hb-aat-layout-morx-table.hh index 51bb3b338..45dbc28aa 100644 --- a/src/hb-aat-layout-morx-table.hh +++ b/src/hb-aat-layout-morx-table.hh @@ -427,13 +427,12 @@ struct LigatureSubtable typedef LigatureEntry LigatureEntryT; typedef typename LigatureEntryT::EntryData EntryData; - typedef typename LigatureEntryT::Flags Flags; struct driver_context_t { enum { - DontAdvance = LigatureEntry::DontAdvance, + DontAdvance = LigatureEntryT::DontAdvance, }; static const bool in_place = false; enum LigActionFlags @@ -470,7 +469,7 @@ struct LigatureSubtable unsigned int flags = entry->flags; DEBUG_MSG (APPLY, nullptr, "Ligature transition at %d", buffer->idx); - if (flags & Flags::SetComponent) + if (flags & LigatureEntryT::SetComponent) { if (unlikely (match_length >= ARRAY_LENGTH (match_positions))) return false;