ElfReader: default the destructor

This commit is contained in:
Lioncash 2017-06-06 22:59:12 -04:00
parent 1af1795695
commit b0427731b3
2 changed files with 3 additions and 1 deletions

View File

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

View File

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