QF*Engine: port a couple of QFlags->int implicit conversions to toInt()
Change-Id: Iafc3527941a0b56a680322e3bc05b4046e560e89 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
549394ebb9
commit
4cc2f48628
@ -1559,7 +1559,7 @@ bool QFileSystemEngine::setPermissions(const QFileSystemEntry &entry, QFile::Per
|
||||
bool success = ::chmod(entry.nativeFilePath().constData(), mode) == 0;
|
||||
if (success && data) {
|
||||
data->entryFlags &= ~QFileSystemMetaData::Permissions;
|
||||
data->entryFlags |= QFileSystemMetaData::MetaDataFlag(uint(permissions));
|
||||
data->entryFlags |= QFileSystemMetaData::MetaDataFlag(uint(permissions.toInt()));
|
||||
data->knownFlagsMask |= QFileSystemMetaData::Permissions;
|
||||
}
|
||||
if (!success)
|
||||
@ -1575,7 +1575,7 @@ bool QFileSystemEngine::setPermissions(int fd, QFile::Permissions permissions, Q
|
||||
bool success = ::fchmod(fd, mode) == 0;
|
||||
if (success && data) {
|
||||
data->entryFlags &= ~QFileSystemMetaData::Permissions;
|
||||
data->entryFlags |= QFileSystemMetaData::MetaDataFlag(uint(permissions));
|
||||
data->entryFlags |= QFileSystemMetaData::MetaDataFlag(uint(permissions.toInt()));
|
||||
data->knownFlagsMask |= QFileSystemMetaData::Permissions;
|
||||
}
|
||||
if (!success)
|
||||
|
@ -383,7 +383,7 @@ QAbstractFileEngine::FileFlags QFSFileEngine::fileFlags(FileFlags type) const
|
||||
{
|
||||
QFileSystemMetaData::MetaDataFlags queryFlags = { };
|
||||
|
||||
queryFlags |= QFileSystemMetaData::MetaDataFlags(uint(type))
|
||||
queryFlags |= QFileSystemMetaData::MetaDataFlags(uint(type.toInt()))
|
||||
& QFileSystemMetaData::Permissions;
|
||||
|
||||
if (type & TypesMask)
|
||||
@ -409,7 +409,7 @@ QAbstractFileEngine::FileFlags QFSFileEngine::fileFlags(FileFlags type) const
|
||||
return ret;
|
||||
|
||||
if (exists && (type & PermsMask))
|
||||
ret |= FileFlags(uint(d->metaData.permissions()));
|
||||
ret |= FileFlags(uint(d->metaData.permissions().toInt()));
|
||||
|
||||
if (type & TypesMask) {
|
||||
if (d->metaData.isAlias()) {
|
||||
|
Loading…
Reference in New Issue
Block a user