summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qtimer.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2025-06-20 17:42:35 -0700
committerThiago Macieira <thiago.macieira@intel.com>2025-10-18 08:25:19 -0700
commitae688468590dedc82cca900332a625c82e87471b (patch)
treebb7080c8976f66a85966535cee61307ab42bae93 /src/corelib/kernel/qtimer.cpp
parent3b7663641d886880c3fa67eed69bddcc0b0fc9e2 (diff)
QArrayDataOps::assign: reuse capacity if this is the last reference
It's a waste to allocate new memory, then deref the old and free it, if we can still use it. This detach-me-for-growth code may be useful in other places too. Change-Id: Ie4d7300589ff21b0aa03fffdb7a74c01c385d842 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/kernel/qtimer.cpp')
0 files changed, 0 insertions, 0 deletions