diff options
author | Max Horn | 2006-07-22 14:14:16 +0000 |
---|---|---|
committer | Max Horn | 2006-07-22 14:14:16 +0000 |
commit | 6ed00cd055abcc98b8ad5d4e2ac6396852ec9c95 (patch) | |
tree | a3f1c83c0bc528f22576bd3f523af49f2a805460 /backends/fs/symbian/symbian-fs.cpp | |
parent | 42cebc00dcb5c274c96f69bb2658906d1ce269ec (diff) | |
download | scummvm-rg350-6ed00cd055abcc98b8ad5d4e2ac6396852ec9c95.tar.gz scummvm-rg350-6ed00cd055abcc98b8ad5d4e2ac6396852ec9c95.tar.bz2 scummvm-rg350-6ed00cd055abcc98b8ad5d4e2ac6396852ec9c95.zip |
Added FilesystemNode::name method
svn-id: r23553
Diffstat (limited to 'backends/fs/symbian/symbian-fs.cpp')
-rw-r--r-- | backends/fs/symbian/symbian-fs.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/backends/fs/symbian/symbian-fs.cpp b/backends/fs/symbian/symbian-fs.cpp index aa8e854125..b8a3e9312d 100644 --- a/backends/fs/symbian/symbian-fs.cpp +++ b/backends/fs/symbian/symbian-fs.cpp @@ -47,13 +47,14 @@ public: SymbianFilesystemNode(bool aIsRoot); SymbianFilesystemNode(const String &path); virtual String displayName() const { return _displayName; } + virtual String name() const { return _displayName; } virtual bool isValid() const { return _isValid; } virtual bool isDirectory() const { return _isDirectory; } virtual String path() const { return _path; } virtual bool listDir(AbstractFSList &list, ListMode mode) const; virtual AbstractFilesystemNode *parent() const; - virtual AbstractFilesystemNode *child(const String &name) const; + virtual AbstractFilesystemNode *child(const String &n) const; }; @@ -206,13 +207,13 @@ AbstractFilesystemNode *SymbianFilesystemNode::parent() const { return p; } -AbstractFilesystemNode *SymbianFilesystemNode::child(const String &name) const { +AbstractFilesystemNode *SymbianFilesystemNode::child(const String &n) const { assert(_isDirectory); String newPath(_path); if (_path.lastChar() != '\\') newPath += '\\'; - newPath += name; + newPath += n; TPtrC8 ptr((const unsigned char*) newPath.c_str(), newPath.size()); TFileName fname; |