diff options
author | Itamar <itamar8910@gmail.com> | 2021-06-19 15:33:03 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-19 14:51:18 +0200 |
commit | 3a4017b419828f289668afebe358a7f486412b99 (patch) | |
tree | 6936e7c7ac4fed00d761a3a6c99e20a9ece68a76 /Userland/Libraries/LibDebug/Dwarf/DIE.cpp | |
parent | 03ef2a479a121cef5de5ca33792f4cf997e6ee71 (diff) | |
download | serenity-3a4017b419828f289668afebe358a7f486412b99.zip |
LibDebug: Convert LibDebug to east-const style
Diffstat (limited to 'Userland/Libraries/LibDebug/Dwarf/DIE.cpp')
-rw-r--r-- | Userland/Libraries/LibDebug/Dwarf/DIE.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibDebug/Dwarf/DIE.cpp b/Userland/Libraries/LibDebug/Dwarf/DIE.cpp index e80835b2ff..e6f546640c 100644 --- a/Userland/Libraries/LibDebug/Dwarf/DIE.cpp +++ b/Userland/Libraries/LibDebug/Dwarf/DIE.cpp @@ -12,7 +12,7 @@ namespace Debug::Dwarf { -DIE::DIE(const CompilationUnit& unit, u32 offset, Optional<u32> parent_offset) +DIE::DIE(CompilationUnit const& unit, u32 offset, Optional<u32> parent_offset) : m_compilation_unit(unit) , m_offset(offset) { @@ -40,7 +40,7 @@ DIE::DIE(const CompilationUnit& unit, u32 offset, Optional<u32> parent_offset) m_parent_offset = parent_offset; } -Optional<AttributeValue> DIE::get_attribute(const Attribute& attribute) const +Optional<AttributeValue> DIE::get_attribute(Attribute const& attribute) const { InputMemoryStream stream { m_compilation_unit.dwarf_info().debug_info_data() }; stream.discard_or_error(m_data_offset); @@ -57,7 +57,7 @@ Optional<AttributeValue> DIE::get_attribute(const Attribute& attribute) const return {}; } -void DIE::for_each_child(Function<void(const DIE& child)> callback) const +void DIE::for_each_child(Function<void(DIE const& child)> callback) const { if (!m_has_children) return; @@ -81,7 +81,7 @@ void DIE::for_each_child(Function<void(const DIE& child)> callback) const if (!sibling.has_value()) { // NOTE: According to the spec, the compiler doesn't have to supply the sibling information. // When it doesn't, we have to recursively iterate the current child's children to find where they end - current_child->for_each_child([&](const DIE& sub_child) { + current_child->for_each_child([&](DIE const& sub_child) { sibling_offset = sub_child.offset() + sub_child.size(); }); } |