diff options
Diffstat (limited to 'backends/fs')
-rw-r--r-- | backends/fs/dc/dc-fs.cpp | 4 | ||||
-rw-r--r-- | backends/fs/gp32/gp32-fs.cpp | 2 | ||||
-rw-r--r-- | backends/fs/palmos/palmos-fs.cpp | 2 | ||||
-rw-r--r-- | backends/fs/posix/posix-fs.cpp | 2 | ||||
-rw-r--r-- | backends/fs/symbian/symbian-fs.cpp | 10 |
5 files changed, 10 insertions, 10 deletions
diff --git a/backends/fs/dc/dc-fs.cpp b/backends/fs/dc/dc-fs.cpp index 6554544c7f..bae13d37e7 100644 --- a/backends/fs/dc/dc-fs.cpp +++ b/backends/fs/dc/dc-fs.cpp @@ -111,11 +111,11 @@ RoninCDFilesystemNode::RoninCDFilesystemNode(const String &p, bool verify) { if (verify) { int fd; - if((fd = open(_path.c_str(), O_RDONLY)) >= 0) { + if ((fd = open(_path.c_str(), O_RDONLY)) >= 0) { close(fd); _isDirectory = false; } - else if((fd = open(_path.c_str(), O_DIR|O_RDONLY)) >= 0) { + else if ((fd = open(_path.c_str(), O_DIR|O_RDONLY)) >= 0) { close(fd); } else { diff --git a/backends/fs/gp32/gp32-fs.cpp b/backends/fs/gp32/gp32-fs.cpp index 9b839867bc..a4af5d4fbe 100644 --- a/backends/fs/gp32/gp32-fs.cpp +++ b/backends/fs/gp32/gp32-fs.cpp @@ -241,7 +241,7 @@ bool GP32FilesystemNode::getChildren(AbstractFSList &myList, ListMode mode, bool } AbstractFilesystemNode *GP32FilesystemNode::getParent() const { - if(_isRoot) + if (_isRoot) return 0; const char *start = _path.c_str(); diff --git a/backends/fs/palmos/palmos-fs.cpp b/backends/fs/palmos/palmos-fs.cpp index 1e954be2f6..508dff428b 100644 --- a/backends/fs/palmos/palmos-fs.cpp +++ b/backends/fs/palmos/palmos-fs.cpp @@ -197,7 +197,7 @@ bool PalmOSFilesystemNode::getChildren(AbstractFSList &myList, ListMode mode, bo if (error) return false; - while(dirIterator != expIteratorStop) { + while (dirIterator != expIteratorStop) { error = VFSDirEntryEnumerate(handle, &dirIterator, &desc); if (!error) { addFile(myList, mode, _path.c_str(), &desc); diff --git a/backends/fs/posix/posix-fs.cpp b/backends/fs/posix/posix-fs.cpp index 3708acd2a8..2e01c551d9 100644 --- a/backends/fs/posix/posix-fs.cpp +++ b/backends/fs/posix/posix-fs.cpp @@ -178,7 +178,7 @@ bool POSIXFilesystemNode::getChildren(AbstractFSList &myList, ListMode mode, boo continue; } // Skip '.' and '..' to avoid cycles - if((dp->d_name[0] == '.' && dp->d_name[1] == 0) || (dp->d_name[0] == '.' && dp->d_name[1] == '.')) { + if ((dp->d_name[0] == '.' && dp->d_name[1] == 0) || (dp->d_name[0] == '.' && dp->d_name[1] == '.')) { continue; } diff --git a/backends/fs/symbian/symbian-fs.cpp b/backends/fs/symbian/symbian-fs.cpp index 60693eefb5..d3b39f192c 100644 --- a/backends/fs/symbian/symbian-fs.cpp +++ b/backends/fs/symbian/symbian-fs.cpp @@ -157,7 +157,7 @@ AbstractFilesystemNode *SymbianFilesystemNode::getChild(const String &n) const { fname.Copy(ptr); TBool isFolder = EFalse; BaflUtils::IsFolder(CEikonEnv::Static()->FsSession(), fname, isFolder); - if(!isFolder) + if (!isFolder) return 0; return new SymbianFilesystemNode(newPath); @@ -182,12 +182,12 @@ bool SymbianFilesystemNode::getChildren(AbstractFSList &myList, ListMode mode, b TInt err = fs.Volume(volumeInfo, driveNumber); if (err != KErrNone) continue; - if(fs.DriveToChar(driveNumber,driveLetter) != KErrNone) + if (fs.DriveToChar(driveNumber,driveLetter) != KErrNone) continue; driveLetterValue = driveLetter; - if(volumeInfo.iName.Length() > 0) { + if (volumeInfo.iName.Length() > 0) { driveLabel8.Copy(volumeInfo.iName); // 16 to 8bit des // enabling this line alone gives KERN-EXEC 3 with non-optimized GCC? WHY? grrr driveString8.Format(_L8("Drive %c: (%S)"), driveLetterValue, &driveLabel8); } else { @@ -211,10 +211,10 @@ bool SymbianFilesystemNode::getChildren(AbstractFSList &myList, ListMode mode, b fname.Copy(ptr); TBuf8<256>nameBuf; CDir* dirPtr; - if(CEikonEnv::Static()->FsSession().GetDir(fname,KEntryAttNormal|KEntryAttDir,0,dirPtr)==KErrNone) { + if (CEikonEnv::Static()->FsSession().GetDir(fname,KEntryAttNormal|KEntryAttDir,0,dirPtr)==KErrNone) { CleanupStack::PushL(dirPtr); TInt cnt=dirPtr->Count(); - for(TInt loop=0;loop<cnt;loop++) { + for (TInt loop=0;loop<cnt;loop++) { TEntry fileentry=(*dirPtr)[loop]; nameBuf.Copy(fileentry.iName); SymbianFilesystemNode entry(false); |