[cff] Don't remove coords const qualification
We should find some way to audit all the const removals, perhaps by enabling -Wold-style-cast warning on the project and turning all the implicit const removals to const_cast.
This commit is contained in:
parent
ff5223ba60
commit
5f23a76e99
|
@ -134,8 +134,7 @@ struct cff2_cs_interp_env_t : cs_interp_env_t<blend_arg_t, CFF2Subrs>
|
|||
if (do_blend)
|
||||
{
|
||||
scalars.resize (region_count);
|
||||
varStore->varStore.get_scalars (get_ivs (),
|
||||
(int *)coords, num_coords,
|
||||
varStore->varStore.get_scalars (get_ivs (), coords, num_coords,
|
||||
&scalars[0], region_count);
|
||||
}
|
||||
seen_blend = true;
|
||||
|
|
|
@ -2206,7 +2206,7 @@ struct VarData
|
|||
return delta;
|
||||
}
|
||||
|
||||
void get_scalars (int *coords, unsigned int coord_count,
|
||||
void get_scalars (const int *coords, unsigned int coord_count,
|
||||
const VarRegionList ®ions,
|
||||
float *scalars /*OUT */,
|
||||
unsigned int num_scalars) const
|
||||
|
@ -2423,7 +2423,7 @@ struct VariationStore
|
|||
{ return (this+dataSets[ivs]).get_region_index_count (); }
|
||||
|
||||
void get_scalars (unsigned int ivs,
|
||||
int *coords, unsigned int coord_count,
|
||||
const int *coords, unsigned int coord_count,
|
||||
float *scalars /*OUT*/,
|
||||
unsigned int num_scalars) const
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue