1
Fork 0
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:
Andreas Kling 2020-11-08 22:52:22 +01:00
parent 9af1a4b9b1
commit c66434e085

View file

@ -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);
} }
} }