diff options
author | Max Horn | 2008-08-22 11:17:12 +0000 |
---|---|---|
committer | Max Horn | 2008-08-22 11:17:12 +0000 |
commit | 3ec5658d00821eafb18cc2ff1b883b74d2956aa9 (patch) | |
tree | 086cd5413bc484293823fc01c1566fb85fa88c4c /backends/platform | |
parent | fc4256ca857b81afc8c342969b36806b37441efa (diff) | |
download | scummvm-rg350-3ec5658d00821eafb18cc2ff1b883b74d2956aa9.tar.gz scummvm-rg350-3ec5658d00821eafb18cc2ff1b883b74d2956aa9.tar.bz2 scummvm-rg350-3ec5658d00821eafb18cc2ff1b883b74d2956aa9.zip |
code formatting cleanup
svn-id: r34096
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/dc/dc-fs.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/backends/platform/dc/dc-fs.cpp b/backends/platform/dc/dc-fs.cpp index f4dc4037df..596e0d72d5 100644 --- a/backends/platform/dc/dc-fs.cpp +++ b/backends/platform/dc/dc-fs.cpp @@ -34,8 +34,6 @@ * * Parts of this class are documented in the base interface class, AbstractFilesystemNode. */ - -/* A file */ class RoninCDFileNode : public AbstractFilesystemNode { protected: String _path; @@ -61,7 +59,7 @@ public: /* A directory */ class RoninCDDirectoryNode : public RoninCDFileNode { public: - RoninCDDirectoryNode(const String &path) : RoninCDFileNode(path) {}; + RoninCDDirectoryNode(const String &path) : RoninCDFileNode(path) {}; virtual bool isDirectory() const { return true; } virtual AbstractFilesystemNode *getChild(const String &n) const; @@ -101,8 +99,7 @@ const char *RoninCDFileNode::lastPathComponent(const Common::String &str) { return cur + 1; } -AbstractFilesystemNode *RoninCDFileNode::makeFileNodePath(const Common::String &path) -{ +AbstractFilesystemNode *RoninCDFileNode::makeFileNodePath(const Common::String &path) { assert(path.size() > 0); int fd; @@ -110,12 +107,10 @@ AbstractFilesystemNode *RoninCDFileNode::makeFileNodePath(const Common::String & if ((fd = open(path.c_str(), O_RDONLY)) >= 0) { close(fd); return new RoninCDFileNode(path); - } - 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); return new RoninCDDirectoryNode(path); - } - else { + } else { return NULL; } } |