Windows QFSFileEngine: avoid some QFlags implicit conversions

Go through fromInt/toInt instead.

Change-Id: I73097e21f59f9e8eb2c9714e22084af0787a53d5
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Giuseppe D'Angelo 2021-05-15 00:23:50 +02:00
parent dc5576895d
commit af38f72e13

View File

@ -524,7 +524,7 @@ QAbstractFileEngine::FileFlags QFSFileEngine::fileFlags(QAbstractFileEngine::Fil
{
QFileSystemMetaData::MetaDataFlags queryFlags;
queryFlags |= QFileSystemMetaData::MetaDataFlags(uint(type))
queryFlags |= QFileSystemMetaData::MetaDataFlags::fromInt(type.toInt())
& QFileSystemMetaData::Permissions;
// AliasType and BundleType are 0x0
@ -545,7 +545,7 @@ QAbstractFileEngine::FileFlags QFSFileEngine::fileFlags(QAbstractFileEngine::Fil
}
if (exists && (type & PermsMask))
ret |= FileFlags(uint(d->metaData.permissions()));
ret |= FileFlags::fromInt(d->metaData.permissions().toInt());
if (type & TypesMask) {
if ((type & LinkType) && d->metaData.isLegacyLink())