From feb028ac37ddd2db0408328d65154e5110bf331d Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Mon, 27 Jul 2020 21:16:31 +0200 Subject: [PATCH] rbutil: Fix deprecation warnings. Change-Id: Ia7e24a5fee2b6e858abcec318d13775ad23b4469 --- rbutil/rbutilqt/base/httpget.cpp | 2 +- rbutil/rbutilqt/quazip/quazipfileinfo.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rbutil/rbutilqt/base/httpget.cpp b/rbutil/rbutilqt/base/httpget.cpp index 1c879e728a..12429e5d17 100644 --- a/rbutil/rbutilqt/base/httpget.cpp +++ b/rbutil/rbutilqt/base/httpget.cpp @@ -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); } diff --git a/rbutil/rbutilqt/quazip/quazipfileinfo.cpp b/rbutil/rbutilqt/quazip/quazipfileinfo.cpp index f11c91017c..1961f116b3 100644 --- a/rbutil/rbutilqt/quazip/quazipfileinfo.cpp +++ b/rbutil/rbutilqt/quazip/quazipfileinfo.cpp @@ -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)