summaryrefslogtreecommitdiff
path: root/sw/source/uibase
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-06-29 12:32:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-06-29 17:33:30 +0200
commit62d9d507fc8739722df2e45483b29910f2743699 (patch)
tree4dd3200302816ab7d47459819c075b273b597063 /sw/source/uibase
parentc89b7f4a31298360e14663f3c192e4e832759a1f (diff)
loplugin:unusedfields make it a little smarter
around dealing with operator[] on map data-types Change-Id: Idd6654948ae2d03d634fcf30a8d98530a78ab4ca Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153740 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase')
-rw-r--r--sw/source/uibase/docvw/edtwin.cxx3
-rw-r--r--sw/source/uibase/inc/shdwcrsr.hxx5
2 files changed, 3 insertions, 5 deletions
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx
index 65ec052affff..4f83a8f52ba8 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -4550,8 +4550,7 @@ void SwEditWin::MouseMove(const MouseEvent& _rMEvt)
if( rSh.GetShadowCursorPos( aDocPt, eMode, aRect, m_eOrient ))
{
if( !m_pShadCursor )
- m_pShadCursor.reset( new SwShadowCursor( *this,
- rSh.GetViewOptions()->GetDirectCursorColor() ) );
+ m_pShadCursor.reset( new SwShadowCursor( *this ) );
if( text::HoriOrientation::RIGHT != m_eOrient && text::HoriOrientation::CENTER != m_eOrient )
m_eOrient = text::HoriOrientation::LEFT;
m_pShadCursor->SetPos( aRect.Pos(), aRect.Height(), static_cast< sal_uInt16 >(m_eOrient) );
diff --git a/sw/source/uibase/inc/shdwcrsr.hxx b/sw/source/uibase/inc/shdwcrsr.hxx
index ec8a5f55f89b..4118b3965a99 100644
--- a/sw/source/uibase/inc/shdwcrsr.hxx
+++ b/sw/source/uibase/inc/shdwcrsr.hxx
@@ -28,7 +28,6 @@
class SwShadowCursor
{
VclPtr<vcl::Window> m_pWin;
- Color m_aCol;
Point m_aOldPt;
tools::Long m_nOldHeight;
sal_uInt16 m_nOldMode;
@@ -36,8 +35,8 @@ class SwShadowCursor
void DrawCursor( sal_uInt16 nMode );
public:
- SwShadowCursor( vcl::Window& rWin, const Color& rCol )
- : m_pWin( &rWin ), m_aCol( rCol ), m_nOldHeight(0), m_nOldMode( USHRT_MAX ) {}
+ SwShadowCursor( vcl::Window& rWin )
+ : m_pWin( &rWin ), m_nOldHeight(0), m_nOldMode( USHRT_MAX ) {}
~SwShadowCursor();
void SetPos( const Point& rPt, tools::Long nHeight, sal_uInt16 nMode );