diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2014-08-16 13:05:31 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-06-22 10:43:17 +0000 |
commit | 426d9b9c3ea0c28ab7e7cd065fe4ae597d58a0e9 (patch) | |
tree | 8e3a003a63bc5e4df2042e36d8aa726aefe118a2 /src/gui | |
parent | 831a7e06c0f3df5b93ae27e3535fe64188ececb6 (diff) |
QtIcoHandler: don't hold images in QList
QImage is larger than a void*, so holding them in a QList is needlessly
inefficient. Worse, the code could come to depend on the fragile property
of (inefficient) QLists that references to elements therein never are
invalidated.
Also added a reserve() call.
Change-Id: I36388f2efbc6ca025f123c30bc7f1dd312bf4ab2
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'src/gui')
0 files changed, 0 insertions, 0 deletions