aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJohannes Schickel2016-01-07 11:14:00 +0100
committerJohannes Schickel2016-01-07 11:25:02 +0100
commit54f5c95832921b72583144e53fa45318a60e9ff9 (patch)
treecfe4f30a481bba1b6cdf6c15ede4da98eea44359 /common
parent1baf3bed7ab240f2ca0f5696b1e78dc741222ae2 (diff)
downloadscummvm-rg350-54f5c95832921b72583144e53fa45318a60e9ff9.tar.gz
scummvm-rg350-54f5c95832921b72583144e53fa45318a60e9ff9.tar.bz2
scummvm-rg350-54f5c95832921b72583144e53fa45318a60e9ff9.zip
COMMON: Make FSNode(AbstractFSNode *) private again.
This also fixes a memory leak in OSystem_iOS7::addSysArchivesToSearchSet.
Diffstat (limited to 'common')
-rw-r--r--common/fs.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/common/fs.h b/common/fs.h
index 66e98444d6..f516bf7a9c 100644
--- a/common/fs.h
+++ b/common/fs.h
@@ -57,12 +57,17 @@ class FSList : public Array<FSNode> {};
*/
class FSNode : public ArchiveMember {
private:
+ friend class ::AbstractFSNode;
SharedPtr<AbstractFSNode> _realNode;
-
-public:
- // WARNING: Use this constructor with care! FSNode takes the ownership of the pointer and will delete it at some point.
+ /**
+ * Construct a FSNode from a backend's AbstractFSNode implementation.
+ *
+ * @param realNode Pointer to a heap allocated instance. FSNode will take
+ * ownership of the pointer.
+ */
FSNode(AbstractFSNode *realNode);
+public:
/**
* Flag to tell listDir() which kind of files to list.
*/