diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2016-09-21 11:23:02 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2016-10-06 12:40:35 +0000 |
commit | 6c05fe9cb760a9a26d7a1a8037aa62966a3bd344 (patch) | |
tree | 58b6f36127be0a0ad77c800d952f803fcb4d0ea8 /configure.json | |
parent | 3b14e2ffdd8eb4b7f7f4508768b75f2acc399370 (diff) |
QQmlTypeLoader: Clean up trimCache()
Any type that:
a, has exactly one reference (from the type cache)
b, has finished loading, and is thus either in Error or Complete state
c, either has no compiled data or again exactly one reference on the
compiled data (from the type)
is not needed anymore and can be trimmed.
The previous logic would not trim types with errors that have received
compiled data by loading from a file and it was generally harder to
understand.
Change-Id: Ieb9ce29599411ea5516742b874cbcf3dcab03bde
Reviewed-by: Michael Brasser <michael.brasser@live.com>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'configure.json')
0 files changed, 0 insertions, 0 deletions