diff options
author | Max Horn | 2006-05-03 11:13:21 +0000 |
---|---|---|
committer | Max Horn | 2006-05-03 11:13:21 +0000 |
commit | 9c1fc023281d1ea3789dcdb2cf7451baaf3d061f (patch) | |
tree | 59b663dd85e8ab02c90448ce4b3cc515672e24b9 /backends/fs/palmos | |
parent | 2ab62d8b02f8ebd7d0ac69abdba52357f41ebb4f (diff) | |
download | scummvm-rg350-9c1fc023281d1ea3789dcdb2cf7451baaf3d061f.tar.gz scummvm-rg350-9c1fc023281d1ea3789dcdb2cf7451baaf3d061f.tar.bz2 scummvm-rg350-9c1fc023281d1ea3789dcdb2cf7451baaf3d061f.zip |
Got rid of AbstractFilesystemNode::wrap (begone, evil hack)
svn-id: r22300
Diffstat (limited to 'backends/fs/palmos')
-rw-r--r-- | backends/fs/palmos/palmos-fs.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/backends/fs/palmos/palmos-fs.cpp b/backends/fs/palmos/palmos-fs.cpp index bebf20ec59..4bbe8e383f 100644 --- a/backends/fs/palmos/palmos-fs.cpp +++ b/backends/fs/palmos/palmos-fs.cpp @@ -48,15 +48,15 @@ public: virtual bool isDirectory() const { return _isDirectory; } virtual String path() const { return _path; } - virtual FSList listDir(ListMode) const; + virtual AbstractFSList listDir(ListMode) const; virtual AbstractFilesystemNode *parent() const; virtual AbstractFilesystemNode *child(const String &name) const; private: - static void addFile (FSList &list, ListMode mode, const Char *base, FileInfoType* find_data); + static void addFile (AbstractFSList &list, ListMode mode, const Char *base, FileInfoType* find_data); }; -void PalmOSFilesystemNode::addFile(FSList &list, ListMode mode, const char *base, FileInfoType* find_data) { +void PalmOSFilesystemNode::addFile(AbstractFSList &list, ListMode mode, const char *base, FileInfoType* find_data) { PalmOSFilesystemNode entry; bool isDirectory; @@ -75,7 +75,7 @@ void PalmOSFilesystemNode::addFile(FSList &list, ListMode mode, const char *base entry._isValid = true; entry._isPseudoRoot = false; - list.push_back(wrap(new PalmOSFilesystemNode(entry))); + list.push_back(new PalmOSFilesystemNode(entry)); } AbstractFilesystemNode *AbstractFilesystemNode::getRoot() { @@ -116,8 +116,8 @@ PalmOSFilesystemNode::PalmOSFilesystemNode(const PalmOSFilesystemNode &node) { _path = node._path; } -FSList PalmOSFilesystemNode::listDir(ListMode mode) const { - FSList myList; +AbstractFSList PalmOSFilesystemNode::listDir(ListMode mode) const { + AbstractFSList myList; Err e; Char nameP[256]; FileInfoType desc; |