diff options
author | Jordi Vilalta Prat | 2008-01-27 19:47:41 +0000 |
---|---|---|
committer | Jordi Vilalta Prat | 2008-01-27 19:47:41 +0000 |
commit | 66e9d4f5e8f35b28f8abd9ce53a0da4da3ce8985 (patch) | |
tree | e27aadabecd8dd910884280e6559ff9c94c3d73c /backends/fs/gp32 | |
parent | 278857698dc7b1623096fe1ad12511dc4c886c7e (diff) | |
download | scummvm-rg350-66e9d4f5e8f35b28f8abd9ce53a0da4da3ce8985.tar.gz scummvm-rg350-66e9d4f5e8f35b28f8abd9ce53a0da4da3ce8985.tar.bz2 scummvm-rg350-66e9d4f5e8f35b28f8abd9ce53a0da4da3ce8985.zip |
Removed trailing spaces.
svn-id: r30664
Diffstat (limited to 'backends/fs/gp32')
-rw-r--r-- | backends/fs/gp32/gp32-fs-factory.h | 10 | ||||
-rw-r--r-- | backends/fs/gp32/gp32-fs.cpp | 22 |
2 files changed, 16 insertions, 16 deletions
diff --git a/backends/fs/gp32/gp32-fs-factory.h b/backends/fs/gp32/gp32-fs-factory.h index 0810695152..90c6bd9500 100644 --- a/backends/fs/gp32/gp32-fs-factory.h +++ b/backends/fs/gp32/gp32-fs-factory.h @@ -30,20 +30,20 @@ /** * Creates GP32FilesystemNode objects. - * + * * Parts of this class are documented in the base interface class, AbstractFilesystemFactory. */ -class GP32FilesystemFactory : public AbstractFilesystemFactory, public Common::Singleton<GP32FilesystemFactory> { +class GP32FilesystemFactory : public AbstractFilesystemFactory, public Common::Singleton<GP32FilesystemFactory> { public: typedef Common::String String; - + virtual AbstractFilesystemNode *makeRootFileNode() const; virtual AbstractFilesystemNode *makeCurrentDirectoryFileNode() const; virtual AbstractFilesystemNode *makeFileNodePath(const String &path) const; - + protected: GP32FilesystemFactory() {}; - + private: friend class Common::Singleton<SingletonBaseType>; }; diff --git a/backends/fs/gp32/gp32-fs.cpp b/backends/fs/gp32/gp32-fs.cpp index 1df07a0d37..56705b90fc 100644 --- a/backends/fs/gp32/gp32-fs.cpp +++ b/backends/fs/gp32/gp32-fs.cpp @@ -29,7 +29,7 @@ /** * Implementation of the ScummVM file system API. - * + * * Parts of this class are documented in the base interface class, AbstractFilesystemNode. */ class GP32FilesystemNode : public AbstractFilesystemNode { @@ -44,10 +44,10 @@ public: * Creates a GP32FilesystemNode with the root node as path. */ GP32FilesystemNode(); - + /** * Creates a GP32FilesystemNode for a given path. - * + * * @param path String with the path the new node should point to. */ GP32FilesystemNode(const String &path); @@ -72,18 +72,18 @@ const char gpRootPath[] = "gp:\\"; /** * Returns the last component of a given path. - * + * * Examples: * gp:\foo\bar.txt would return "\bar.txt" * gp:\foo\bar\ would return "\bar\" - * + * * @param str Path to obtain the last component from. * @return Pointer to the first char of the last component inside str. */ const char *lastPathComponent(const Common::String &str) { if(str.empty()) return ""; - + const char *start = str.c_str(); const char *cur = start + str.size() - 2; @@ -96,7 +96,7 @@ const char *lastPathComponent(const Common::String &str) { /** * FIXME: document this function. - * + * * @param path * @param convPath */ @@ -165,7 +165,7 @@ GP32FilesystemNode::GP32FilesystemNode(const String &path) { _path = convPath; pos = convPath; - + while (*pos) if (*pos++ == '\\') dsplName = pos; @@ -186,7 +186,7 @@ AbstractFilesystemNode *GP32FilesystemNode::getChild(const String &n) const { // FIXME: Pretty lame implementation! We do no error checking to speak // of, do not check if this is a special node, etc. assert(_isDirectory); - + String newPath(_path); if (_path.lastChar() != '\\') newPath += '\\'; @@ -213,11 +213,11 @@ bool GP32FilesystemNode::getChildren(AbstractFSList &myList, ListMode mode, bool int startIdx = 0; // current file String listDir(_path); //listDir += "/"; - + while (GpDirEnumList(listDir.c_str(), startIdx++, 1, &dirEntry, &read) == SM_OK) { da if (dirEntry.name[0] == '.') continue; - + entry._displayName = dirEntry.name; entry._path = _path; entry._path += dirEntry.name; |