QFileInfo: remove a couple of QFlags->int implicit conversions

Change-Id: Iabfca134709852694967d605c6a93f34a9777d8a
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
Giuseppe D'Angelo 2021-06-16 18:25:29 +02:00
parent a7fa9db9b1
commit 95cb4e2260

View File

@ -179,7 +179,7 @@ uint QFileInfoPrivate::getFileFlags(QAbstractFileEngine::FileFlags request) cons
req |= QAbstractFileEngine::Refresh;
QAbstractFileEngine::FileFlags flags = fileEngine->fileFlags(req);
fileFlags |= uint(flags);
fileFlags |= uint(flags.toInt());
setCachedFlag(cachedFlags);
}
@ -1361,7 +1361,7 @@ bool QFileInfo::permission(QFile::Permissions permissions) const
fseFlags,
[=]() { return (d->metaData.permissions() & permissions) == permissions; },
[=]() {
return d->getFileFlags(feFlags) == uint(permissions);
return d->getFileFlags(feFlags) == uint(permissions.toInt());
});
}