diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-06-26 15:34:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-06-27 08:35:49 +0200 |
commit | 0541b41705946a8086f3ad2c5366765c389e5480 (patch) | |
tree | 07f88305f96939155bc9eb88d97d00cce4fa660c /sw/inc | |
parent | 510050dea2ce0a6476f0adb0f603a3e9fbe87405 (diff) |
loplugin:useuniqueptr in SwSelPaintRects
Change-Id: I34411e00d67ab29eb0796207d17f77a4f767c0b0
Reviewed-on: https://gerrit.libreoffice.org/56500
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/viscrs.hxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/inc/viscrs.hxx b/sw/inc/viscrs.hxx index 902a25314a00..258fc8d3f105 100644 --- a/sw/inc/viscrs.hxx +++ b/sw/inc/viscrs.hxx @@ -21,6 +21,7 @@ #include <config_features.h> +#include <svx/sdr/overlay/overlayobject.hxx> #include <vcl/cursor.hxx> #include "swcrsr.hxx" #include "swrect.hxx" @@ -59,7 +60,6 @@ public: // From here classes/methods for selections. -namespace sdr { namespace overlay { class OverlayObject; }} namespace sw { namespace overlay { class OverlayRangesOutline; }} class MapMode; @@ -74,15 +74,15 @@ class SwSelPaintRects : public SwRects const SwCursorShell* m_pCursorShell; #if HAVE_FEATURE_DESKTOP || defined(ANDROID) - sdr::overlay::OverlayObject* m_pCursorOverlay; + std::unique_ptr<sdr::overlay::OverlayObject> m_pCursorOverlay; // access to m_pCursorOverlay for swapContent - sdr::overlay::OverlayObject* getCursorOverlay() const { return m_pCursorOverlay; } - void setCursorOverlay(sdr::overlay::OverlayObject* pNew) { m_pCursorOverlay = pNew; } + sdr::overlay::OverlayObject* getCursorOverlay() const { return m_pCursorOverlay.get(); } + void setCursorOverlay(std::unique_ptr<sdr::overlay::OverlayObject> pNew) { m_pCursorOverlay = std::move(pNew); } #endif bool m_bShowTextInputFieldOverlay; - sw::overlay::OverlayRangesOutline* m_pTextInputFieldOverlay; + std::unique_ptr<sw::overlay::OverlayRangesOutline> m_pTextInputFieldOverlay; void HighlightInputField(); |