summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-11-07 16:18:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-11-09 06:21:25 +0100
commitce98f8d033ab9dfd505448860981472153970e96 (patch)
tree93614bafe38b76e22541aecbca486b5ee8d1e258 /sw
parentaea53c0ed1527ed1f8233972a27128e14d645e8f (diff)
loplugin:fieldcast in SwSelPaintRects
Change-Id: I62471db74c30baf8bd42a3679624c767c68c66f0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159137 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/viscrs.hxx4
-rw-r--r--sw/source/core/crsr/viscrs.cxx2
2 files changed, 3 insertions, 3 deletions
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
{