*/
void QFSFileEnginePrivate::init()
{
- is_sequential = 0;
metaData.clear();
openMode = QIODevice::NotOpen;
fd = -1;
bool QFSFileEngine::isSequential() const
{
Q_D(const QFSFileEngine);
- if (d->is_sequential == 0) {
- bool isSequentialFdFh = true;
- if (d->doStat(QFileSystemMetaData::SequentialType))
- isSequentialFdFh = d->metaData.isSequential();
- d->is_sequential = (isSequentialFdFh ? 1 : 2);
- }
- return (d->is_sequential == 1);
+ if (d->doStat(QFileSystemMetaData::SequentialType))
+ return d->metaData.isSequential();
+ return true;
}
/*!