From 6b4484472b79dc7ea7d1ce545a28fba7d3b7696f Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 30 Jul 2005 21:11:48 +0000 Subject: Remove trailing whitespaces. svn-id: r18604 --- backends/fs/posix/posix-fs.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'backends/fs/posix') 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; -- cgit v1.2.3