Make more 'coords' params const.
This commit is contained in:
parent
08b7172969
commit
5a24ea15e0
|
@ -1475,7 +1475,7 @@ struct VarRegionAxis
|
||||||
struct VarRegionList
|
struct VarRegionList
|
||||||
{
|
{
|
||||||
inline float evaluate (unsigned int region_index,
|
inline float evaluate (unsigned int region_index,
|
||||||
int *coords, unsigned int coord_len) const
|
const int *coords, unsigned int coord_len) const
|
||||||
{
|
{
|
||||||
if (unlikely (region_index >= regionCount))
|
if (unlikely (region_index >= regionCount))
|
||||||
return 0.;
|
return 0.;
|
||||||
|
@ -1520,7 +1520,7 @@ struct VarData
|
||||||
{ return itemCount * get_row_size (); }
|
{ return itemCount * get_row_size (); }
|
||||||
|
|
||||||
inline float get_delta (unsigned int inner,
|
inline float get_delta (unsigned int inner,
|
||||||
int *coords, unsigned int coord_count,
|
const int *coords, unsigned int coord_count,
|
||||||
const VarRegionList ®ions) const
|
const VarRegionList ®ions) const
|
||||||
{
|
{
|
||||||
if (unlikely (inner >= itemCount))
|
if (unlikely (inner >= itemCount))
|
||||||
|
@ -1573,7 +1573,7 @@ struct VarData
|
||||||
struct VariationStore
|
struct VariationStore
|
||||||
{
|
{
|
||||||
inline float get_delta (unsigned int outer, unsigned int inner,
|
inline float get_delta (unsigned int outer, unsigned int inner,
|
||||||
int *coords, unsigned int coord_count) const
|
const int *coords, unsigned int coord_count) const
|
||||||
{
|
{
|
||||||
if (unlikely (outer >= dataSets.len))
|
if (unlikely (outer >= dataSets.len))
|
||||||
return 0.;
|
return 0.;
|
||||||
|
@ -1584,7 +1584,7 @@ struct VariationStore
|
||||||
}
|
}
|
||||||
|
|
||||||
inline float get_delta (unsigned int index,
|
inline float get_delta (unsigned int index,
|
||||||
int *coords, unsigned int coord_count) const
|
const int *coords, unsigned int coord_count) const
|
||||||
{
|
{
|
||||||
unsigned int outer = index >> 16;
|
unsigned int outer = index >> 16;
|
||||||
unsigned int inner = index & 0xFFFF;
|
unsigned int inner = index & 0xFFFF;
|
||||||
|
|
|
@ -901,7 +901,7 @@ static inline bool match_input (hb_ot_apply_context_t *c,
|
||||||
}
|
}
|
||||||
static inline bool ligate_input (hb_ot_apply_context_t *c,
|
static inline bool ligate_input (hb_ot_apply_context_t *c,
|
||||||
unsigned int count, /* Including the first glyph */
|
unsigned int count, /* Including the first glyph */
|
||||||
unsigned int match_positions[HB_MAX_CONTEXT_LENGTH], /* Including the first glyph */
|
const unsigned int match_positions[HB_MAX_CONTEXT_LENGTH], /* Including the first glyph */
|
||||||
unsigned int match_length,
|
unsigned int match_length,
|
||||||
hb_codepoint_t lig_glyph,
|
hb_codepoint_t lig_glyph,
|
||||||
unsigned int total_component_count)
|
unsigned int total_component_count)
|
||||||
|
|
|
@ -115,7 +115,7 @@ struct HVARVVAR
|
||||||
}
|
}
|
||||||
|
|
||||||
inline float get_advance_var (hb_codepoint_t glyph,
|
inline float get_advance_var (hb_codepoint_t glyph,
|
||||||
int *coords, unsigned int coord_count) const
|
const int *coords, unsigned int coord_count) const
|
||||||
{
|
{
|
||||||
unsigned int varidx = (this+advMap).map (glyph);
|
unsigned int varidx = (this+advMap).map (glyph);
|
||||||
return (this+varStore).get_delta (varidx, coords, coord_count);
|
return (this+varStore).get_delta (varidx, coords, coord_count);
|
||||||
|
|
|
@ -72,7 +72,7 @@ struct MVAR
|
||||||
}
|
}
|
||||||
|
|
||||||
inline float get_var (hb_tag_t tag,
|
inline float get_var (hb_tag_t tag,
|
||||||
int *coords, unsigned int coord_count) const
|
const int *coords, unsigned int coord_count) const
|
||||||
{
|
{
|
||||||
const VariationValueRecord *record;
|
const VariationValueRecord *record;
|
||||||
record = (VariationValueRecord *) bsearch (&tag, valuesZ.arrayZ,
|
record = (VariationValueRecord *) bsearch (&tag, valuesZ.arrayZ,
|
||||||
|
|
Loading…
Reference in New Issue