mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-07 06:25:03 +00:00
[cache] Minor use a range for loop
This commit is contained in:
parent
afae537c3c
commit
7aba1e6dd2
1 changed files with 2 additions and 2 deletions
|
@ -66,8 +66,8 @@ struct hb_cache_t
|
|||
|
||||
void clear ()
|
||||
{
|
||||
for (unsigned i = 0; i < ARRAY_LENGTH (values); i++)
|
||||
values[i] = -1;
|
||||
for (auto &v : values)
|
||||
v = -1;
|
||||
}
|
||||
|
||||
bool get (unsigned int key, unsigned int *value) const
|
||||
|
|
Loading…
Add table
Reference in a new issue