1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 14:53:21 +02:00

Use the static exists() functions that are faster according to the docs

This commit is contained in:
Martin Tůma 2021-09-01 20:14:06 +02:00
parent c84d7871fb
commit c592be7cfd

View File

@ -53,7 +53,7 @@ bool DEMLoader::loadTiles(const RectC &rect)
QString fn(tileFile(t));
QString zn(fn + ".zip");
if (!(QFileInfo(zn).exists() || QFileInfo(fn).exists())) {
if (!(QFileInfo::exists(zn) || QFileInfo::exists(fn))) {
QUrl url(tileUrl(t));
dl.append(Download(url, isZip(url) ? zn : fn));
}
@ -77,7 +77,7 @@ bool DEMLoader::checkTiles(const RectC &rect) const
QString fn(tileFile(t));
QString zn(fn + ".zip");
if (!(QFileInfo(zn).exists() || QFileInfo(fn).exists()))
if (!(QFileInfo::exists(zn) || QFileInfo::exists(fn)))
return false;
}