diff options
author | Chris Warren-Smith | 2011-08-14 09:42:31 +1000 |
---|---|---|
committer | Chris Warren-Smith | 2011-08-21 16:38:53 +1000 |
commit | 2e77b97b1984e32690ab3864af931553d5272767 (patch) | |
tree | d8736873001a67f2b31d5f39954e4e7719a3b336 /backends/platform/bada/fs.cpp | |
parent | ad58d2feafe2e85961e57ef05d4061d51dfb2172 (diff) | |
download | scummvm-rg350-2e77b97b1984e32690ab3864af931553d5272767.tar.gz scummvm-rg350-2e77b97b1984e32690ab3864af931553d5272767.tar.bz2 scummvm-rg350-2e77b97b1984e32690ab3864af931553d5272767.zip |
BADA: Code formatting; replace tab before else with space
Diffstat (limited to 'backends/platform/bada/fs.cpp')
-rwxr-xr-x | backends/platform/bada/fs.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/backends/platform/bada/fs.cpp b/backends/platform/bada/fs.cpp index 73492101ce..22684aeeec 100755 --- a/backends/platform/bada/fs.cpp +++ b/backends/platform/bada/fs.cpp @@ -117,7 +117,7 @@ bool BadaFileStream::seek(int32 offs, int whence) { SetLastResult(E_SUCCESS); bufferIndex += offs; return true; - } else { + } else { offs -= (bufferLength - bufferIndex); if (offs < 0 && file->Tell() + offs < 0) { // avoid negative positioning @@ -126,7 +126,7 @@ bool BadaFileStream::seek(int32 offs, int whence) { if (offs != 0) { SetLastResult(file->Seek(FILESEEKPOSITION_CURRENT, offs)); result = (E_SUCCESS == GetLastResult()); - } else { + } else { result = true; } } @@ -162,7 +162,7 @@ uint32 BadaFileStream::read(void *ptr, uint32 len) { memcpy((byte*) ptr, &buffer[bufferIndex], len); bufferIndex += len; result = len; - } else { + } else { // use remaining allocation memcpy((byte*) ptr, &buffer[bufferIndex], available); uint32 remaining = len - available; @@ -173,7 +173,7 @@ uint32 BadaFileStream::read(void *ptr, uint32 len) { } bufferIndex = bufferLength = 0; } - } else if (len < BUFFER_SIZE) { + } else if (len < BUFFER_SIZE) { // allocate and use buffer bufferIndex = 0; bufferLength = file->Read(buffer, BUFFER_SIZE); @@ -184,11 +184,11 @@ uint32 BadaFileStream::read(void *ptr, uint32 len) { memcpy((byte*) ptr, buffer, len); result = bufferIndex = len; } - } else { + } else { result = file->Read((byte*) ptr, len); bufferIndex = bufferLength = 0; } - } else { + } else { AppLog("Attempted to read past EOS"); } return result; @@ -318,10 +318,10 @@ bool BadaFilesystemNode::getChildren(AbstractFSList &myList, myList.push_back(new BadaFilesystemNode("/Media")); myList.push_back(new BadaFilesystemNode("/Storagecard")); result = true; // no more entries - } else if (_path == "/Storagecard") { + } else if (_path == "/Storagecard") { myList.push_back(new BadaFilesystemNode("/Storagecard/Media")); result = true; // no more entries - } else if (_path == "/Home") { + } else if (_path == "/Home") { // ensure share path is always included myList.push_back(new BadaFilesystemNode("/Home/Share")); myList.push_back(new BadaFilesystemNode("/Home/Share2")); @@ -335,7 +335,7 @@ bool BadaFilesystemNode::getChildren(AbstractFSList &myList, // open directory if (IsFailed(pDir->Construct(_unicodePath))) { AppLog("Failed to open directory"); - } else { + } else { // read all directory entries pDirEnum = pDir->ReadN(); if (pDirEnum) { |