diff options
author | Vincent Bénony | 2015-12-03 07:13:15 +0100 |
---|---|---|
committer | Vincent Bénony | 2016-01-06 16:17:31 +0100 |
commit | c1e664b6d681e4f59de361457e7487c138aaf31f (patch) | |
tree | 3c63b447c304bdf428652cc362793c895d386977 /backends/fs/chroot/chroot-fs-factory.cpp | |
parent | 106e3a87bdeb4485e232bec57ff516bb634700b6 (diff) | |
download | scummvm-rg350-c1e664b6d681e4f59de361457e7487c138aaf31f.tar.gz scummvm-rg350-c1e664b6d681e4f59de361457e7487c138aaf31f.tar.bz2 scummvm-rg350-c1e664b6d681e4f59de361457e7487c138aaf31f.zip |
IOS: Replaces spaces with tabs
Diffstat (limited to 'backends/fs/chroot/chroot-fs-factory.cpp')
-rw-r--r-- | backends/fs/chroot/chroot-fs-factory.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/backends/fs/chroot/chroot-fs-factory.cpp b/backends/fs/chroot/chroot-fs-factory.cpp index 4030f4f502..fa98ab75d3 100644 --- a/backends/fs/chroot/chroot-fs-factory.cpp +++ b/backends/fs/chroot/chroot-fs-factory.cpp @@ -32,29 +32,29 @@ #include "backends/fs/posix/posix-fs-factory.h" ChRootFilesystemFactory::ChRootFilesystemFactory(Common::String root) { - _root = root; + _root = root; } AbstractFSNode *ChRootFilesystemFactory::makeRootFileNode() const { - return new ChRootFilesystemNode(_root, "/"); + return new ChRootFilesystemNode(_root, "/"); } AbstractFSNode *ChRootFilesystemFactory::makeCurrentDirectoryFileNode() const { - char buf[MAXPATHLEN]; - if (getcwd(buf, MAXPATHLEN) == NULL) { - return NULL; - } + char buf[MAXPATHLEN]; + if (getcwd(buf, MAXPATHLEN) == NULL) { + return NULL; + } - if (Common::String(buf).hasPrefix(_root + Common::String("/"))) { - return new ChRootFilesystemNode(_root, buf + _root.size()); - } + if (Common::String(buf).hasPrefix(_root + Common::String("/"))) { + return new ChRootFilesystemNode(_root, buf + _root.size()); + } - return new ChRootFilesystemNode(_root, "/"); + return new ChRootFilesystemNode(_root, "/"); } AbstractFSNode *ChRootFilesystemFactory::makeFileNodePath(const Common::String &path) const { - assert(!path.empty()); - return new ChRootFilesystemNode(_root, path); + assert(!path.empty()); + return new ChRootFilesystemNode(_root, path); } #endif |