Remove unused include and very small refactoring.
Unused include in unself.h, ELF.h. New line after an if to enable debugging. Rewrite strange boolean expression in ELF.cpp.
This commit is contained in:
@@ -121,14 +121,17 @@ void Loader::Open(vfsFileBase& stream)
|
||||
|
||||
LoaderBase* Loader::SearchLoader()
|
||||
{
|
||||
if(!m_stream) return nullptr;
|
||||
if(!m_stream)
|
||||
return nullptr;
|
||||
|
||||
LoaderBase* l;
|
||||
|
||||
if((l=new ELFLoader(*m_stream))->LoadInfo()) return l;
|
||||
LoaderBase* l = new ELFLoader(*m_stream);
|
||||
if(l->LoadInfo())
|
||||
return l;
|
||||
delete l;
|
||||
|
||||
if((l=new SELFLoader(*m_stream))->LoadInfo()) return l;
|
||||
l = new SELFLoader(*m_stream);
|
||||
if(l->LoadInfo())
|
||||
return l;
|
||||
delete l;
|
||||
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user