Base: PR6497 move return statement to new line

This commit is contained in:
Chris Hennes
2022-03-29 12:34:34 -05:00
parent 5df3dbae6f
commit b5c72abee4
10 changed files with 110 additions and 55 deletions

View File

@@ -377,7 +377,8 @@ bool FileInfo::isFile () const
// If we can open it must be an existing file, otherwise we assume it
// is a directory (which doesn't need to be true for any cases)
std::ifstream str(FileName.c_str(), std::ios::in | std::ios::binary);
if (!str) return false;
if (!str)
return false;
str.close();
return true;
}
@@ -551,7 +552,8 @@ bool FileInfo::createDirectories() const
bool FileInfo::deleteDirectory() const
{
if (isDir() == false ) return false;
if (isDir() == false )
return false;
#if defined (FC_OS_WIN32)
std::wstring wstr = toStdWString();
return _wrmdir(wstr.c_str()) == 0;
@@ -564,7 +566,8 @@ bool FileInfo::deleteDirectory() const
bool FileInfo::deleteDirectoryRecursive() const
{
if (isDir() == false ) return false;
if (isDir() == false )
return false;
std::vector<Base::FileInfo> List = getDirectoryContent();
for (std::vector<Base::FileInfo>::iterator It = List.begin();It!=List.end();++It) {