[aat] Fix older compilers by not referencing enum directly (#1340)

This commit is contained in:
Ebrahim Byagowi 2018-10-31 14:20:14 +03:30 committed by GitHub
parent 642c9dcf1b
commit 2e639c47c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -427,13 +427,12 @@ struct LigatureSubtable
typedef LigatureEntry<Types::extended> LigatureEntryT;
typedef typename LigatureEntryT::EntryData EntryData;
typedef typename LigatureEntryT::Flags Flags;
struct driver_context_t
{
enum
{
DontAdvance = LigatureEntry<Types::extended>::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;