diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2020-06-01 11:54:45 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2021-07-16 06:36:06 +0200 |
commit | ff1c12376ba2a99be50d34f0c6a7ac9afd725b10 (patch) | |
tree | b7c0dc08b2d3f248729b02be76a6073d42679f4c /src/gui/painting/qpainter_p.h | |
parent | e71b9fb4658991bd509c784b98410af221583dd5 (diff) |
QPainter: replace manual memory management [4/5]: emulationEngine
Use unique_ptr to indicate ownership.
The QPainter dtor is now empty, = default it.
As a drive-by, fix a non-sensical if (p) p = nullptr;
Change-Id: I5c811eb7de6abf8a9f279cf3630d5f86db6b3864
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/gui/painting/qpainter_p.h')
-rw-r--r-- | src/gui/painting/qpainter_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qpainter_p.h b/src/gui/painting/qpainter_p.h index c369922756..09de84f2b2 100644 --- a/src/gui/painting/qpainter_p.h +++ b/src/gui/painting/qpainter_p.h @@ -272,7 +272,7 @@ public: }; std::unique_ptr<QPaintEngine, QPaintEngineDestructor> engine; - QEmulationPaintEngine *emulationEngine = nullptr; + std::unique_ptr<QEmulationPaintEngine> emulationEngine; QPaintEngineEx *extended = nullptr; QBrush colorBrush; // for fill with solid color }; |