mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 08:42:59 +00:00
[UnsizedArray] Minor simplify operator[]
This commit is contained in:
parent
319ea3b967
commit
595aa58379
1 changed files with 2 additions and 4 deletions
|
@ -462,14 +462,12 @@ struct UnsizedArrayOf
|
|||
|
||||
HB_DELETE_CREATE_COPY_ASSIGN (UnsizedArrayOf);
|
||||
|
||||
const Type& operator [] (int i_) const
|
||||
const Type& operator [] (unsigned int i) const
|
||||
{
|
||||
unsigned int i = (unsigned int) i_;
|
||||
return arrayZ[i];
|
||||
}
|
||||
Type& operator [] (int i_)
|
||||
Type& operator [] (unsigned int i)
|
||||
{
|
||||
unsigned int i = (unsigned int) i_;
|
||||
return arrayZ[i];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue