diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-06-20 17:28:12 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-06-22 10:43:11 +0000 |
commit | 831a7e06c0f3df5b93ae27e3535fe64188ececb6 (patch) | |
tree | fe5d3f032488afe329d9a1198d0d9c233044b57d /src/plugins/imageformats/ico/qicohandler.cpp | |
parent | 792f68adea6abd7e3c947a3a195c737efc36b760 (diff) |
qdoc: don't hold Location in QLists, don't even copy it
Location is a self-referential type that is very expensive to copy.
So don't.
Instead, just remember the iterator, and use value()->location()
(which returns a reference, so doesn't copy).
Change-Id: I9a2b72b05b8051e793cf67179a0195f2f3551a10
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Reviewed-by: Martin Smith <martin.smith@digia.com>
Diffstat (limited to 'src/plugins/imageformats/ico/qicohandler.cpp')
0 files changed, 0 insertions, 0 deletions