From 860405064e823cfe5bdb110a7a8def4ecbd7b853 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Thu, 25 Apr 2024 09:20:24 -0700 Subject: QResource: remove unnecessary mutable markers These are all modified by ensureInitialized() and ensureChildren(), which are const. However, ensureInitialized() does a const_cast<> on the object before calling non-const load(), which is where these are modified. Change-Id: I6979d02a7395405cbf23fffd17c992546ecbda49 Reviewed-by: Oswald Buddenhagen Reviewed-by: Ahmad Samir --- src/corelib/io/qresource.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/corelib/io') diff --git a/src/corelib/io/qresource.cpp b/src/corelib/io/qresource.cpp index b76d2b6478..5b8b60c576 100644 --- a/src/corelib/io/qresource.cpp +++ b/src/corelib/io/qresource.cpp @@ -282,11 +282,11 @@ public: QLocale locale; QString fileName, absoluteFilePath; QList related; - mutable qint64 size; - mutable quint64 lastModified; - mutable const uchar *data; + qint64 size; + quint64 lastModified; + const uchar *data; mutable QStringList children; - mutable quint8 compressionAlgo; + quint8 compressionAlgo; bool container; /* 2 or 6 padding bytes */ -- cgit v1.2.3