sw/inc/viscrs.hxx | 4 ++-- sw/source/core/crsr/viscrs.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
New commits: commit ce98f8d033ab9dfd505448860981472153970e96 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Tue Nov 7 16:18:05 2023 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Thu Nov 9 06:21:25 2023 +0100 loplugin:fieldcast in SwSelPaintRects Change-Id: I62471db74c30baf8bd42a3679624c767c68c66f0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159137 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sw/inc/viscrs.hxx b/sw/inc/viscrs.hxx index 24b632cca22c..2aba4bbd7110 100644 --- a/sw/inc/viscrs.hxx +++ b/sw/inc/viscrs.hxx @@ -28,7 +28,7 @@ #include <optional> -namespace sdr::overlay { class OverlayObject; } +namespace sdr::overlay { class OverlaySelection; } class SwCursorShell; class SfxViewShell; @@ -87,7 +87,7 @@ class SwSelPaintRects : public SwRects const SwCursorShell* m_pCursorShell; #if HAVE_FEATURE_DESKTOP || defined(ANDROID) - std::unique_ptr<sdr::overlay::OverlayObject> m_pCursorOverlay; + std::unique_ptr<sdr::overlay::OverlaySelection> m_pCursorOverlay; #endif bool m_bShowTextInputFieldOverlay; diff --git a/sw/source/core/crsr/viscrs.cxx b/sw/source/core/crsr/viscrs.cxx index f681f3a32815..0385ce85f71c 100644 --- a/sw/source/core/crsr/viscrs.cxx +++ b/sw/source/core/crsr/viscrs.cxx @@ -448,7 +448,7 @@ void SwSelPaintRects::Show(std::vector<OString>* pSelectionRectangles) { if(!aNewRanges.empty()) { - static_cast<sdr::overlay::OverlaySelection*>(m_pCursorOverlay.get())->setRanges(std::move(aNewRanges)); + m_pCursorOverlay->setRanges(std::move(aNewRanges)); } else {