diff options
author | Eugene Sandulenko | 2005-07-30 21:11:48 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2005-07-30 21:11:48 +0000 |
commit | 6b4484472b79dc7ea7d1ce545a28fba7d3b7696f (patch) | |
tree | c44c4e61f18ddd537f7082cb48869cf33d422fbd /backends/fs/posix | |
parent | 86ab70b149e5cd00cf54f2e41896e2c4e16795e4 (diff) | |
download | scummvm-rg350-6b4484472b79dc7ea7d1ce545a28fba7d3b7696f.tar.gz scummvm-rg350-6b4484472b79dc7ea7d1ce545a28fba7d3b7696f.tar.bz2 scummvm-rg350-6b4484472b79dc7ea7d1ce545a28fba7d3b7696f.zip |
Remove trailing whitespaces.
svn-id: r18604
Diffstat (limited to 'backends/fs/posix')
-rw-r--r-- | backends/fs/posix/posix-fs.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/backends/fs/posix/posix-fs.cpp b/backends/fs/posix/posix-fs.cpp index 0224eb67a2..076548356f 100644 --- a/backends/fs/posix/posix-fs.cpp +++ b/backends/fs/posix/posix-fs.cpp @@ -45,7 +45,7 @@ protected: bool _isDirectory; bool _isValid; String _path; - + public: POSIXFilesystemNode(); POSIXFilesystemNode(const String &path); @@ -64,11 +64,11 @@ public: static const char *lastPathComponent(const Common::String &str) { const char *start = str.c_str(); const char *cur = start + str.size() - 2; - + while (cur > start && *cur != '/') { --cur; } - + return cur+1; } @@ -84,7 +84,7 @@ POSIXFilesystemNode::POSIXFilesystemNode() { #ifndef __DC__ char buf[MAXPATHLEN]; getcwd(buf, MAXPATHLEN); - + _path = buf; _displayName = lastPathComponent(_path); _path += '/'; @@ -99,7 +99,7 @@ POSIXFilesystemNode::POSIXFilesystemNode() { POSIXFilesystemNode::POSIXFilesystemNode(const String &p) { int len = 0, offset = p.size(); struct stat st; - + assert(offset > 0); _path = p; @@ -147,7 +147,7 @@ FSList POSIXFilesystemNode::listDir(ListMode mode) const { // Skip 'invisible' files if (dp->d_name[0] == '.') continue; - + POSIXFilesystemNode entry; entry._displayName = dp->d_name; entry._path = _path; |