1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-27 21:24:47 +01:00

Use unbuffered I/O as we use our own buffering

This commit is contained in:
Martin Tůma 2022-02-21 21:04:24 +01:00
parent 22aa472dc3
commit 28a10ccb32

View File

@ -384,7 +384,7 @@ bool MapData::readHeader()
MapData::MapData(const QString &fileName) : _file(fileName) MapData::MapData(const QString &fileName) : _file(fileName)
{ {
if (!_file.open(QFile::ReadOnly)) { if (!_file.open(QFile::ReadOnly | QIODevice::Unbuffered)) {
_errorString = _file.errorString(); _errorString = _file.errorString();
return; return;
} }
@ -419,7 +419,7 @@ RectC MapData::bounds() const
void MapData::load() void MapData::load()
{ {
if (_file.open(QIODevice::ReadOnly)) if (_file.open(QIODevice::ReadOnly | QIODevice::Unbuffered))
readSubFiles(); readSubFiles();
} }