mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-29 17:44:06 +01:00
[instancer/varstore] Avoid copies in loops
This commit is contained in:
1 parent
a4a5089201
commit
c7e46ab2bf
1 file changed
+2
-2
@@ -2386,7 +2386,7 @@ struct delta_row_encoding_t
|
||||
void merge (const delta_row_encoding_t& other)
|
||||
{
|
||||
items.alloc (items.length + other.items.length);
|
||||
for (auto row : other.items)
|
||||
for (auto &row : other.items)
|
||||
add_row (row);
|
||||
|
||||
// Merge chars
|
||||
@@ -2409,7 +2409,7 @@ struct delta_row_encoding_t
|
||||
|
||||
bool long_words = false;
|
||||
|
||||
for (auto row : items)
|
||||
for (auto &row : items)
|
||||
{
|
||||
assert (row->length == chars.length);
|
||||
|
||||
|
||||
Reference in new issue
Block a user