core: Make converting constructors explicit where applicable

Avoids unwanted implicit conversions. Thankfully, given the large amount
of cleanup in past PRs, only this tiny amount is left over to cover.
This commit is contained in:
Lioncash 2018-07-23 23:10:48 -04:00 committed by zhupengfei
parent 4a3c4f5f67
commit 661f7bbcfd
4 changed files with 4 additions and 4 deletions

View file

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

View file

@ -84,7 +84,7 @@ constexpr u32 MakeMagic(char a, char b, char c, char d) {
/// Interface for loading an application
class AppLoader : NonCopyable {
public:
AppLoader(FileUtil::IOFile&& file) : file(std::move(file)) {}
explicit AppLoader(FileUtil::IOFile&& file) : file(std::move(file)) {}
virtual ~AppLoader() {}
/**