diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2023-06-12 12:20:34 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2023-06-20 13:25:09 +0000 |
| commit | c2bcba93a67ed980021304c3bbca5556b4cc3add (patch) | |
| tree | 40f22993d97793d66e232ca6378a1ff101200072 /src/corelib/plugin/qpluginloader.cpp | |
| parent | 8cad4c2903d014bb755bd2349f9c4d127a87cc7a (diff) | |
QPixmapCache: simplify remove(QString)
The previous code used `cacheKey` as the name of an iterator, which
made the code hard to understand.
Instead of renaming that to the more idiomatic `it`, use QHash::take()
to get an actual `cacheKey` back, and then delegate to
QPMCache::remove(QPixmapCache::Key) for the actual removal.
Pick-to: 6.6 6.5 6.2
Task-number: QTBUG-112200
Change-Id: I9311c19f12a05cad694702672f17ae19ba339b04
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/plugin/qpluginloader.cpp')
0 files changed, 0 insertions, 0 deletions
