ElfReader: default the destructor
This commit is contained in:
parent
1af1795695
commit
b0427731b3
|
@ -76,6 +76,8 @@ ElfReader::ElfReader(const std::string& filename) : BootExecutableReader(filenam
|
|||
Initialize(m_bytes.data());
|
||||
}
|
||||
|
||||
ElfReader::~ElfReader() = default;
|
||||
|
||||
void ElfReader::Initialize(u8* ptr)
|
||||
{
|
||||
base = (char*)ptr;
|
||||
|
|
|
@ -23,7 +23,7 @@ class ElfReader final : public BootExecutableReader
|
|||
public:
|
||||
explicit ElfReader(const std::string& filename);
|
||||
explicit ElfReader(const std::vector<u8>& buffer);
|
||||
~ElfReader() {}
|
||||
~ElfReader();
|
||||
u32 Read32(int off) const { return base32[off >> 2]; }
|
||||
// Quick accessors
|
||||
ElfType GetType() const { return (ElfType)(header->e_type); }
|
||||
|
|
Loading…
Reference in New Issue