diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2025-06-26 00:01:42 +0200 |
|---|---|---|
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2025-07-26 06:05:44 +0000 |
| commit | 7c54f4ac44c71818a455281249b3e77636b79cdb (patch) | |
| tree | 7645ffb1f11db0aa79fb9c33ea5eebf4afb119c1 /src/corelib/kernel/qobject.cpp | |
| parent | 13088266c389e61d09f85ba2ca521a3f7cf95d12 (diff) | |
QMovie: cut the QMap middle-man
QMovie has a QMap member whose implicit sharing feature is unused.
So cut the QMap baggage above the underlying std::map and use the STL
class directly, paying attention to the gotcha that QMap::insert(k, v)
is std::map[k] = v.
Also move-insert. NRVO does not apply here, and we can copy when we
need to (when i == frameNumber).
Saves a bit more than 1KiB in TEXT size on optimized Clang 19 Linux
AMD64 builds.
Pick-to: 6.10 6.9 6.8
Change-Id: I40dce95689482db3ecbe1015c18ba0ed32d39a7b
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/kernel/qobject.cpp')
0 files changed, 0 insertions, 0 deletions
