summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qobject.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2025-10-21 23:49:00 -0700
committerThiago Macieira <thiago.macieira@intel.com>2025-10-23 15:24:28 -0700
commite5cec95bffc0a621715b27e4b14966c0dc86afe6 (patch)
treed16f9432866fab6bb8bcd4a0231b27637dbb9d89 /src/corelib/kernel/qobject.cpp
parent6ad78341748d69bf5cfa6e71c7c9abf33acb241e (diff)
QList::assign: optimize for empty std::initializer_list
Happens often when one writes: l = {}; For the vast majority of cases, the size is a constant because the std::initializer_list is an automatic variable, so this should not result in extra conditionals in the code (in release mode, of course). Pick-to: 6.10 6.8 6.5 Change-Id: If90fc920810f42ab68e5fffdc7a254b2e3f709a7 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/kernel/qobject.cpp')
0 files changed, 0 insertions, 0 deletions