mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
common: add missing consts
Adding const was necessary to allow calling the functions on constant objects.
This commit is contained in:
parent
fdc45edf32
commit
6902c790d2
2 changed files with 2 additions and 2 deletions
|
@ -59,7 +59,7 @@ struct Array
|
|||
data[count++] = element;
|
||||
}
|
||||
|
||||
void push(Array<T>& rhs)
|
||||
void push(const Array<T>& rhs)
|
||||
{
|
||||
if (rhs.count == 0) return;
|
||||
grow(rhs.count);
|
||||
|
|
|
@ -100,7 +100,7 @@ struct Inlist
|
|||
if (element == tail) tail = element->prev;
|
||||
}
|
||||
|
||||
bool empty()
|
||||
bool empty() const
|
||||
{
|
||||
return head ? false : true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue