aboutsummaryrefslogtreecommitdiff
path: root/backends/fs
diff options
context:
space:
mode:
authorjepael2019-11-09 16:21:09 +0200
committerBastien Bouclet2019-11-09 16:36:30 +0100
commit843e0f6a4b23e5d92b38d8a358331491b6f003b5 (patch)
tree24f479a1e93888b928a836f5303503655c50168f /backends/fs
parent3b1c928f52b39ee4fc00a3a3d537f0f1ab319328 (diff)
downloadscummvm-rg350-843e0f6a4b23e5d92b38d8a358331491b6f003b5.tar.gz
scummvm-rg350-843e0f6a4b23e5d92b38d8a358331491b6f003b5.tar.bz2
scummvm-rg350-843e0f6a4b23e5d92b38d8a358331491b6f003b5.zip
POSIX: Fix compiler warning
Diffstat (limited to 'backends/fs')
-rw-r--r--backends/fs/posix-drives/posix-drives-fs.cpp4
-rw-r--r--backends/fs/posix-drives/posix-drives-fs.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/backends/fs/posix-drives/posix-drives-fs.cpp b/backends/fs/posix-drives/posix-drives-fs.cpp
index d48792e2ff..c37492ee25 100644
--- a/backends/fs/posix-drives/posix-drives-fs.cpp
+++ b/backends/fs/posix-drives/posix-drives-fs.cpp
@@ -53,7 +53,7 @@ DrivePOSIXFilesystemNode::DrivePOSIXFilesystemNode(const DrivesArray &drives) :
_isValid = false;
}
-DrivePOSIXFilesystemNode *DrivePOSIXFilesystemNode::getChildWithKnownType(const Common::String &n, bool isDirectory) const {
+DrivePOSIXFilesystemNode *DrivePOSIXFilesystemNode::getChildWithKnownType(const Common::String &n, bool isDirectoryFlag) const {
assert(_isDirectory);
// Make sure the string contains no slashes
@@ -68,7 +68,7 @@ DrivePOSIXFilesystemNode *DrivePOSIXFilesystemNode::getChildWithKnownType(const
child->_path = newPath;
child->_isValid = true;
child->_isPseudoRoot = false;
- child->_isDirectory = isDirectory;
+ child->_isDirectory = isDirectoryFlag;
child->_displayName = n;
return child;
diff --git a/backends/fs/posix-drives/posix-drives-fs.h b/backends/fs/posix-drives/posix-drives-fs.h
index 04d21b42b1..4c022b79cc 100644
--- a/backends/fs/posix-drives/posix-drives-fs.h
+++ b/backends/fs/posix-drives/posix-drives-fs.h
@@ -50,7 +50,7 @@ private:
bool _isPseudoRoot;
const DrivesArray &_drives;
- DrivePOSIXFilesystemNode *getChildWithKnownType(const Common::String &n, bool isDirectory) const;
+ DrivePOSIXFilesystemNode *getChildWithKnownType(const Common::String &n, bool isDirectoryFlag) const;
bool isDrive(const Common::String &path) const;
};