diff options
author | Eugene Sandulenko | 2009-01-01 15:06:43 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2009-01-01 15:06:43 +0000 |
commit | 696897b0583ad52ebc6f7666525277847619a8ce (patch) | |
tree | 5ac2be2991e94dce32c5bb7fdb0dcc4188221503 /backends/fs/posix | |
parent | 05d3633eb32ead8e11435b85a9db1ddaa1482fcb (diff) | |
download | scummvm-rg350-696897b0583ad52ebc6f7666525277847619a8ce.tar.gz scummvm-rg350-696897b0583ad52ebc6f7666525277847619a8ce.tar.bz2 scummvm-rg350-696897b0583ad52ebc6f7666525277847619a8ce.zip |
Whoa! Removing trailing spaces.
svn-id: r35648
Diffstat (limited to 'backends/fs/posix')
-rw-r--r-- | backends/fs/posix/posix-fs.cpp | 16 | ||||
-rw-r--r-- | backends/fs/posix/posix-fs.h | 4 |
2 files changed, 10 insertions, 10 deletions
diff --git a/backends/fs/posix/posix-fs.cpp b/backends/fs/posix/posix-fs.cpp index 463d647042..446ded779d 100644 --- a/backends/fs/posix/posix-fs.cpp +++ b/backends/fs/posix/posix-fs.cpp @@ -61,7 +61,7 @@ POSIXFilesystemNode::POSIXFilesystemNode(const Common::String &p) { } else { _path = p; } - + #ifdef __OS2__ // On OS/2, 'X:/' is a root of drive X, so we should not remove that last // slash. @@ -95,7 +95,7 @@ POSIXFilesystemNode::POSIXFilesystemNode(const Common::String &p) { AbstractFSNode *POSIXFilesystemNode::getChild(const Common::String &n) const { assert(!_path.empty()); assert(_isDirectory); - + // Make sure the string contains no slashes assert(!n.contains('/')); @@ -117,14 +117,14 @@ bool POSIXFilesystemNode::getChildren(AbstractFSList &myList, ListMode mode, boo // Special case for the root dir: List all DOS drives ULONG ulDrvNum; ULONG ulDrvMap; - + DosQueryCurrentDisk(&ulDrvNum, &ulDrvMap); - + for (int i = 0; i < 26; i++) { if (ulDrvMap & 1) { char drive_root[] = "A:/"; drive_root[0] += i; - + POSIXFilesystemNode *entry = new POSIXFilesystemNode(); entry->_isDirectory = true; entry->_isValid = true; @@ -132,10 +132,10 @@ bool POSIXFilesystemNode::getChildren(AbstractFSList &myList, ListMode mode, boo entry->_displayName = "[" + Common::String(drive_root, 2) + "]"; myList.push_back(entry); } - + ulDrvMap >>= 1; } - + return true; } #endif @@ -220,7 +220,7 @@ AbstractFSNode *POSIXFilesystemNode::getParent() const { const char *start = _path.c_str(); const char *end = start + _path.size(); - + // Strip of the last component. We make use of the fact that at this // point, _path is guaranteed to be normalized while (end > start && *(end-1) != '/') diff --git a/backends/fs/posix/posix-fs.h b/backends/fs/posix/posix-fs.h index 7bd21c94b1..8050f52b41 100644 --- a/backends/fs/posix/posix-fs.h +++ b/backends/fs/posix/posix-fs.h @@ -43,11 +43,11 @@ protected: Common::String _path; bool _isDirectory; bool _isValid; - + virtual AbstractFSNode *makeNode(const Common::String &path) const { return new POSIXFilesystemNode(path); } - + /** * Plain constructor, for internal use only (hence protected). */ |