QFileSystemEngine:🆔 use the proper QT_STATBUF/QT_STAT
Just in case. Change-Id: I1eba2b016de74620bfc8fffd14ccaa801805ae02 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
parent
08a39ecf33
commit
f6ac7379ae
@ -336,8 +336,8 @@ QFileSystemEntry QFileSystemEngine::absoluteName(const QFileSystemEntry &entry)
|
|||||||
//static
|
//static
|
||||||
QByteArray QFileSystemEngine::id(const QFileSystemEntry &entry)
|
QByteArray QFileSystemEngine::id(const QFileSystemEntry &entry)
|
||||||
{
|
{
|
||||||
struct stat statResult;
|
QT_STATBUF statResult;
|
||||||
if (stat(entry.nativeFilePath().constData(), &statResult)) {
|
if (QT_STAT(entry.nativeFilePath().constData(), &statResult)) {
|
||||||
qErrnoWarning("stat() failed for '%s'", entry.nativeFilePath().constData());
|
qErrnoWarning("stat() failed for '%s'", entry.nativeFilePath().constData());
|
||||||
return QByteArray();
|
return QByteArray();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user