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:
parent
a7fa9db9b1
commit
95cb4e2260
@ -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());
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user