summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-08-28 00:22:03 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2021-09-07 15:48:35 +0200
commit7166a82844500238a4dad91857384479c7b35817 (patch)
tree29d2d885f0b21f49083abc76dce5a2a7d5e0d023 /src/tools
parent9f13842fe61541cb8ab9822174ea963e418b5537 (diff)
Refactor QStatusBar to reduce memory allocation
Reading through the code contemplating what might have caused QTBUG-89141 brought up some opportunities for improvement. * updated coding style and variable names * use ranged for where possible and meaningful * replacing a QList of pointers to heap-allocated structs with a list of values Since the QList population code makes sure that we never have gaps (we only insert within the existing range), the test for null-entries is not needed, and was perhaps just precausion to avoid nullptr dereference. Task-number: QTBUG-89141 Change-Id: I4694d820427a221f1334d2428f50069751919aef Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io> Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'src/tools')
0 files changed, 0 insertions, 0 deletions