mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 00:38:11 +00:00
LibDebug: Avoid copying AttributeSpecifications when iterating them
This commit is contained in:
parent
9af1a4b9b1
commit
c66434e085
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ DIE::DIE(const CompilationUnit& unit, u32 offset)
|
||||||
m_has_children = abbreviation_info.value().has_children;
|
m_has_children = abbreviation_info.value().has_children;
|
||||||
|
|
||||||
// We iterate the attributes data only to calculate this DIE's size
|
// We iterate the attributes data only to calculate this DIE's size
|
||||||
for (auto attribute_spec : abbreviation_info.value().attribute_specifications) {
|
for (auto& attribute_spec : abbreviation_info.value().attribute_specifications) {
|
||||||
get_attribute_value(attribute_spec.form, stream);
|
get_attribute_value(attribute_spec.form, stream);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue