POSIX: Fix compiler warning

This commit is contained in:
jepael 2019-11-09 16:21:09 +02:00 committed by Bastien Bouclet
parent 3b1c928f52
commit 843e0f6a4b
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;
};