Use UnsizedArrayOf<> in one place where [VAR] was used
Trying to see how many can converted meaningfully.
This commit is contained in:
parent
0644d92ef3
commit
091c17df5a
|
@ -1279,7 +1279,7 @@ struct VarRegionList
|
|||
if (unlikely (region_index >= regionCount))
|
||||
return 0.;
|
||||
|
||||
const VarRegionAxis *axes = axesZ + (region_index * axisCount);
|
||||
const VarRegionAxis *axes = axesZ.arrayZ + (region_index * axisCount);
|
||||
|
||||
float v = 1.;
|
||||
unsigned int count = axisCount;
|
||||
|
@ -1298,14 +1298,14 @@ struct VarRegionList
|
|||
{
|
||||
TRACE_SANITIZE (this);
|
||||
return_trace (c->check_struct (this) &&
|
||||
c->check_array (axesZ, axesZ[0].static_size,
|
||||
(unsigned int) axisCount * (unsigned int) regionCount));
|
||||
axesZ.sanitize (c, (unsigned int) axisCount * (unsigned int) regionCount));
|
||||
}
|
||||
|
||||
protected:
|
||||
HBUINT16 axisCount;
|
||||
HBUINT16 regionCount;
|
||||
VarRegionAxis axesZ[VAR];
|
||||
UnsizedArrayOf<VarRegionAxis>
|
||||
axesZ;
|
||||
public:
|
||||
DEFINE_SIZE_ARRAY (4, axesZ);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue