diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2025-05-20 20:38:38 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2025-05-30 18:16:40 +0200 |
| commit | 3e986578980f1c37e282ee15068fa250a763209d (patch) | |
| tree | df5f71f3bce5ecac04dcbc73fc8f1c4238229675 /src/corelib/kernel/qmetaobject.cpp | |
| parent | e670a6d77beda288c4e339608f6a0881d26c02d6 (diff) | |
QPainter: make Private::d_ptrs a QVLA<unique_ptr>
This way, we remove the impedance mismatch between QPainter::d_ptr
(which already is a unique_ptr) and Private::d_ptrs, which still dealt
in raw pointers, simplifying the code.
Since we're now owning the objects in d_ptrs, add an assertion that
d_ptrs is empty on QPainter destruction.
Coverity-Id: 425479
Change-Id: I849e80752b4bc5a71aef8d47663c6ffc9fdca9f7
Reviewed-by: Matthias Rauter <matthias.rauter@qt.io>
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Diffstat (limited to 'src/corelib/kernel/qmetaobject.cpp')
0 files changed, 0 insertions, 0 deletions
