mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
tvgArray: return a const reference for const methods
This commit is contained in:
parent
36b311f0ca
commit
dabd15c4c5
1 changed files with 2 additions and 2 deletions
|
@ -73,12 +73,12 @@ struct Array
|
|||
return data + count;
|
||||
}
|
||||
|
||||
T& last() const
|
||||
const T& last() const
|
||||
{
|
||||
return data[count - 1];
|
||||
}
|
||||
|
||||
T& first() const
|
||||
const T& first() const
|
||||
{
|
||||
return data[0];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue