[VARC] Minor move variable closer to use

This commit is contained in:
Behdad Esfahbod 2025-02-24 20:15:24 -07:00
parent 0a1b26b862
commit 081fcbdf5a

View file

@ -145,7 +145,6 @@ VarComponent::get_path_at (hb_font_t *font,
auto &VARC = *font->face->table.VARC;
auto &varStore = &VARC+VARC.varStore;
auto instancer = MultiItemVarStoreInstancer(&varStore, nullptr, coords, cache);
#define READ_UINT32VAR(name) \
HB_STMT_START { \
@ -188,6 +187,7 @@ VarComponent::get_path_at (hb_font_t *font,
unsigned conditionIndex;
READ_UINT32VAR (conditionIndex);
const auto &condition = (&VARC+VARC.conditionList)[conditionIndex];
auto instancer = MultiItemVarStoreInstancer(&varStore, nullptr, coords, cache);
show = condition.evaluate (coords.arrayZ, coords.length, &instancer);
}