mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 04:38:49 +00:00
constification, code style, changed vector<FileInfo*> to vector<FileInfo> for less allocs and more speed in debug mode
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@611 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
38f04809f1
commit
cca92d4e38
12 changed files with 136 additions and 198 deletions
|
@ -36,15 +36,15 @@ IFileSystem* CreateFileSystem(const IVolume* _rVolume)
|
|||
{
|
||||
IFileSystem* pFileSystem = new CFileSystemGCWii(_rVolume);
|
||||
|
||||
if (pFileSystem)
|
||||
if (!pFileSystem)
|
||||
return 0;
|
||||
|
||||
if (!pFileSystem->IsInitialized())
|
||||
{
|
||||
if (!pFileSystem->IsInitialized())
|
||||
{
|
||||
delete pFileSystem;
|
||||
pFileSystem = NULL;
|
||||
}
|
||||
delete pFileSystem;
|
||||
pFileSystem = NULL;
|
||||
}
|
||||
|
||||
return(pFileSystem);
|
||||
return pFileSystem;
|
||||
}
|
||||
} // namespace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue