aboutsummaryrefslogtreecommitdiff
path: root/backends/fs/symbian
diff options
context:
space:
mode:
authorMax Horn2006-04-04 20:54:55 +0000
committerMax Horn2006-04-04 20:54:55 +0000
commit112ba72222bf191a9c1e4d1ef8e83af1d43d3082 (patch)
treedd8d76377e0c1b3cd72e6083f50ac0fe0a1e60dc /backends/fs/symbian
parentbca4dd001fae016b5c137d00d7c13d58c9f7937f (diff)
downloadscummvm-rg350-112ba72222bf191a9c1e4d1ef8e83af1d43d3082.tar.gz
scummvm-rg350-112ba72222bf191a9c1e4d1ef8e83af1d43d3082.tar.bz2
scummvm-rg350-112ba72222bf191a9c1e4d1ef8e83af1d43d3082.zip
Removing more pseudo copy constructors in favor of the standard copy constructor (gee, everybody is copying my bad code, it seems ;-)
svn-id: r21597
Diffstat (limited to 'backends/fs/symbian')
-rw-r--r--backends/fs/symbian/symbian-fs.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/backends/fs/symbian/symbian-fs.cpp b/backends/fs/symbian/symbian-fs.cpp
index bf5f9e2b82..438e574f05 100644
--- a/backends/fs/symbian/symbian-fs.cpp
+++ b/backends/fs/symbian/symbian-fs.cpp
@@ -45,7 +45,6 @@ protected:
public:
SymbianFilesystemNode(bool aIsRoot);
SymbianFilesystemNode(const String &path);
- SymbianFilesystemNode(const SymbianFilesystemNode *node);
virtual String displayName() const { return _displayName; }
virtual bool isValid() const { return _isValid; }
virtual bool isDirectory() const { return _isDirectory; }
@@ -97,14 +96,6 @@ SymbianFilesystemNode::SymbianFilesystemNode(const String &path) {
_isDirectory = true;
}
-SymbianFilesystemNode::SymbianFilesystemNode(const SymbianFilesystemNode *node) {
- _displayName = node->_displayName;
- _isValid = node->_isValid;
- _isDirectory = node->_isDirectory;
- _path = node->_path;
- _isPseudoRoot = node->_isPseudoRoot;
-}
-
FSList SymbianFilesystemNode::listDir(ListMode mode) const {
assert(_isDirectory);
FSList myList;
@@ -144,7 +135,7 @@ FSList SymbianFilesystemNode::listDir(ListMode mode) const {
entry._isValid = true;
entry._isPseudoRoot = false;
entry._path = path;
- myList.push_back(wrap(new SymbianFilesystemNode(&entry)));
+ myList.push_back(wrap(new SymbianFilesystemNode(entry)));
}
} else {
TPtrC8 ptr((const unsigned char*)_path.c_str(),_path.size());
@@ -173,7 +164,7 @@ FSList SymbianFilesystemNode::listDir(ListMode mode) const {
if (entry._isDirectory)
entry._path += "\\";
- myList.push_back(wrap(new SymbianFilesystemNode(&entry)));
+ myList.push_back(wrap(new SymbianFilesystemNode(entry)));
}
CleanupStack::PopAndDestroy(dirPtr);
}