diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2018-11-01 16:35:29 -0700 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2018-11-19 09:09:36 +0000 |
commit | 6b088b7a1da37511a8abb1503e4f2f95632dbdac (patch) | |
tree | 78ae5cc43dce8164a50cba8ed00ad7ee495ccde2 /src | |
parent | 6a792d6f0b5a15ce09b7883bbbb06b2724596e40 (diff) |
QResourceFileEngine: fix use of mapped files after close()
QFile::map() is documented to continue working after the QFile is
closed, so this should work for the resource file engine too.
Change-Id: I343f2beed55440a7ac0bfffd1563243a3966441f
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/io/qresource.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/corelib/io/qresource.cpp b/src/corelib/io/qresource.cpp index 8c1bfc8c48..564a3e5f51 100644 --- a/src/corelib/io/qresource.cpp +++ b/src/corelib/io/qresource.cpp @@ -1288,7 +1288,6 @@ bool QResourceFileEngine::close() { Q_D(QResourceFileEngine); d->offset = 0; - d->uncompressed.clear(); return true; } |