void QFSFileEnginePrivate::init()
{
is_sequential = 0;
- tried_stat = 0;
- need_lstat = 1;
- is_link = 0;
+ tried_stat = false;
openMode = QIODevice::NotOpen;
fd = -1;
fh = 0;
d->openMode = openMode;
d->lastFlushFailed = false;
- d->tried_stat = 0;
+ d->tried_stat = false;
d->fh = 0;
d->fd = -1;
d->lastFlushFailed = false;
d->closeFileHandle = (handleFlags & QFile::AutoCloseHandle);
d->fileEntry.clear();
- d->tried_stat = 0;
+ d->tried_stat = false;
d->fd = -1;
return d->openFh(openMode, fh);
d->fileEntry.clear();
d->fh = 0;
d->fd = -1;
- d->tried_stat = 0;
+ d->tried_stat = false;
return d->openFd(openMode, fd);
}
// Flush the file if it's buffered, and if the last flush didn't fail.
bool flushed = !fh || (!lastFlushFailed && q->flush());
bool closed = true;
- tried_stat = 0;
+ tried_stat = false;
// Close the file if we created the handle.
Q_Q(const QFSFileEngine);
const_cast<QFSFileEngine *>(q)->flush();
- tried_stat = 0;
+ tried_stat = false;
metaData.clearFlags(QFileSystemMetaData::SizeAttribute);
if (!doStat(QFileSystemMetaData::SizeAttribute))
return 0;
bool lastFlushFailed;
bool closeFileHandle;
- mutable uint is_sequential : 2;
- mutable uint could_stat : 1;
- mutable uint tried_stat : 1;
- mutable uint need_lstat : 1;
- mutable uint is_link : 1;
+ mutable uint is_sequential;
+ mutable bool tried_stat;
bool doStat(QFileSystemMetaData::MetaDataFlags flags = QFileSystemMetaData::PosixStatFlags) const;
bool isSymlink() const;