ElfReader: Make constructor explicit
Allowing implicit conversions here is definitely not desirable.
This commit is contained in:
parent
a2750a82dd
commit
e6ffce3ac9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue