mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:57:44 +00:00
LibELF: Use default instead of an empty constructor/destructor
Default implementations allow for more optimizations. See: https://pvs-studio.com/en/docs/warnings/v832/
This commit is contained in:
parent
889ade06fe
commit
5dbc72a158
2 changed files with 6 additions and 6 deletions
|
@ -38,7 +38,7 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
~DynamicEntry() { }
|
||||
~DynamicEntry() = default;
|
||||
|
||||
ElfW(Sword) tag() const { return m_dyn.d_tag; }
|
||||
ElfW(Addr) ptr() const { return m_dyn.d_un.d_ptr; }
|
||||
|
@ -161,7 +161,7 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
~Relocation() { }
|
||||
~Relocation() = default;
|
||||
|
||||
unsigned offset_in_section() const { return m_offset_in_section; }
|
||||
unsigned offset() const { return m_rel.r_offset; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue