ElfReader: Make constructor explicit

Allowing implicit conversions here is definitely not desirable.
This commit is contained in:
Lioncash 2017-02-08 10:20:03 -05:00
parent a2750a82dd
commit e6ffce3ac9
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ private:
u32 entryPoint;
public:
ElfReader(void* ptr);
explicit ElfReader(void* ptr);
~ElfReader() {}
u32 Read32(int off) const { return base32[off >> 2]; }
// Quick accessors