From 843e0f6a4b23e5d92b38d8a358331491b6f003b5 Mon Sep 17 00:00:00 2001 From: jepael Date: Sat, 9 Nov 2019 16:21:09 +0200 Subject: POSIX: Fix compiler warning --- backends/fs/posix-drives/posix-drives-fs.cpp | 4 ++-- backends/fs/posix-drives/posix-drives-fs.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'backends') 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; }; -- cgit v1.2.3