rbutil: Fix deprecation warnings.

Change-Id: Ia7e24a5fee2b6e858abcec318d13775ad23b4469
This commit is contained in:
Dominik Riebeling 2020-07-27 21:16:31 +02:00
parent 7c5b9a4049
commit feb028ac37
2 changed files with 2 additions and 2 deletions

View file

@ -51,7 +51,7 @@ void HttpGet::setCache(const QDir& d)
{
if(m_cache && m_cachedir == d.absolutePath())
return;
m_cachedir = d.absolutePath();
m_cachedir.setPath(d.absolutePath());
setCache(true);
}

View file

@ -26,7 +26,7 @@ see quazip/(un)zip.h files for details. Basically it's the zlib license.
static QFile::Permissions permissionsFromExternalAttr(quint32 externalAttr) {
quint32 uPerm = (externalAttr & 0xFFFF0000u) >> 16;
QFile::Permissions perm = 0;
QFile::Permissions perm = QFile::Permissions();
if ((uPerm & 0400) != 0)
perm |= QFile::ReadOwner;
if ((uPerm & 0200) != 0)