mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-31 09:05:14 +01:00
Use the static exists() functions that are faster according to the docs
This commit is contained in:
parent
c84d7871fb
commit
c592be7cfd
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user