summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/qtablewidget-resizing/mainwindow.cpp
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2020-11-19 10:52:41 +0100
committerMårten Nordheim <marten.nordheim@qt.io>2020-11-21 13:59:16 +0000
commitf08492c6fd9818c7d80b1725355453e179b4d85b (patch)
tree8633b624214324083dc2bd499e0ecbb174b334a6 /src/widgets/doc/snippets/qtablewidget-resizing/mainwindow.cpp
parentae2c30942086bd0387c6d5297c0cb85b505f29a0 (diff)
QCache: fix accidental pessimization
By unconditionally removing the existing entry we never hit the if (result.initialized) branch. Change it to only remove the existing entry if we don't plan on inserting. Task-number: QTBUG-88183 Pick-to: 6.0 6.0.0 Change-Id: If4e7ebac23aa63d4b9d4b0a22882dd7d90a58e8b Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/widgets/doc/snippets/qtablewidget-resizing/mainwindow.cpp')
0 files changed, 0 insertions, 0 deletions