diff options
author | Max Horn | 2006-04-03 21:54:26 +0000 |
---|---|---|
committer | Max Horn | 2006-04-03 21:54:26 +0000 |
commit | 4226aa761dd43e8515f4f4f6790f142fdd8b3927 (patch) | |
tree | 62d3312ed578e3d3b88c2372682361cbdb957e32 /backends/fs/fs.h | |
parent | 5595ec568097b86a72b26ada55507426c254f853 (diff) | |
download | scummvm-rg350-4226aa761dd43e8515f4f4f6790f142fdd8b3927.tar.gz scummvm-rg350-4226aa761dd43e8515f4f4f6790f142fdd8b3927.tar.bz2 scummvm-rg350-4226aa761dd43e8515f4f4f6790f142fdd8b3927.zip |
Fix AbstractFilesystemNode::wrap to not call (indirectly) getRoot, just to throw away the result immediately again (which (a) caused a slowdown and (b) a leak, both fixed now)
svn-id: r21581
Diffstat (limited to 'backends/fs/fs.h')
-rw-r--r-- | backends/fs/fs.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/backends/fs/fs.h b/backends/fs/fs.h index 6ad51762ca..7005707b16 100644 --- a/backends/fs/fs.h +++ b/backends/fs/fs.h @@ -165,6 +165,8 @@ private: AbstractFilesystemNode *_realNode; int *_refCount; + FilesystemNode(AbstractFilesystemNode *realNode); + /** * Returns a special node representing the FS root. The starting point for * any file system browsing. @@ -199,12 +201,12 @@ public: FilesystemNode getParent() const; - virtual String displayName() const { return _realNode->displayName(); } - virtual bool isValid() const { return _realNode->isValid(); } - virtual bool isDirectory() const { return _realNode->isDirectory(); } - virtual String path() const { return _realNode->path(); } + virtual String displayName() const; + virtual bool isValid() const; + virtual bool isDirectory() const; + virtual String path() const; - virtual FSList listDir(ListMode mode = kListDirectoriesOnly) const { return _realNode->listDir(mode); } + virtual FSList listDir(ListMode mode = kListDirectoriesOnly) const; protected: void decRefCount(); |