summaryrefslogtreecommitdiffstats
path: root/src/opengl/doc/snippets/code
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2025-04-15 12:58:40 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2025-04-17 11:34:09 +0000
commite2beffe6f55daa55a9307290fd53175af76c729a (patch)
tree944c5e0d39593db8ac20d2c543a05b60400f8d7b /src/opengl/doc/snippets/code
parentb93d9dc01a068d719e0f06b59b4b566cd6f00163 (diff)
Widget effects DRY: replace manual pointer handling with unique_ptr
Instead of repeatedly resetting of the static pointers after (or before) calling deleteLater(), use a unique_ptr with a custom deleter. Since we use deleteLater(), nothing will happen if one of those widgets does leak to the point where static objects are destroyed; we'd at most call deleteLater() at this point, which won't do anything (if we enqueue a DeferredDelete event at all, then it will never be processed). Task-number: QTBUG-135976 Change-Id: I36a4780093eafd064dcb1a72696c1d9b21483b77 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> (cherry picked from commit b50a2761e735208eeb62042ecfaba7a76e580454) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit c9ba8760deec4b2f5c245e9120d59b622b383ceb)
Diffstat (limited to 'src/opengl/doc/snippets/code')
0 files changed, 0 insertions, 0 deletions