summaryrefslogtreecommitdiff
path: root/vcl/source/window
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-12 08:51:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-12 12:49:43 +0100
commit6ab83f201d80151a9a7ee22dec412e1c014c4063 (patch)
treee50678a6b57b539359b41ba3c8ef6bda2127ab58 /vcl/source/window
parentbf8c1e277159b82362ed8f3a83d1abd0460a25c8 (diff)
loplugin:singlevalfields in vcl
Change-Id: I71367548ae15ef78f9860bab9bb05c96b82eb54a Reviewed-on: https://gerrit.libreoffice.org/63275 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/window')
-rw-r--r--vcl/source/window/cursor.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/vcl/source/window/cursor.cxx b/vcl/source/window/cursor.cxx
index 0da13be25d16..483c9205d37a 100644
--- a/vcl/source/window/cursor.cxx
+++ b/vcl/source/window/cursor.cxx
@@ -139,7 +139,7 @@ void vcl::Cursor::ImplDraw()
vcl::Window* pWindow = mpData->mpWindow;
mpData->maPixPos = pWindow->LogicToPixel( maPos );
mpData->maPixSize = pWindow->LogicToPixel( maSize );
- mpData->mnPixSlant = pWindow->LogicToPixel( Size( mnSlant, 0 ) ).Width();
+ mpData->mnPixSlant = 0;
mpData->mnOrientation = mnOrientation;
mpData->mnDirection = mnDirection;
@@ -309,7 +309,6 @@ vcl::Cursor::Cursor()
{
mpData = nullptr;
mpWindow = nullptr;
- mnSlant = 0;
mnOrientation = 0;
mnDirection = CursorDirection::NONE;
mnStyle = 0;
@@ -322,7 +321,6 @@ vcl::Cursor::Cursor( const Cursor& rCursor ) :
{
mpData = nullptr;
mpWindow = nullptr;
- mnSlant = rCursor.mnSlant;
mnOrientation = rCursor.mnOrientation;
mnDirection = rCursor.mnDirection;
mnStyle = 0;
@@ -420,7 +418,6 @@ vcl::Cursor& vcl::Cursor::operator=( const vcl::Cursor& rCursor )
{
maPos = rCursor.maPos;
maSize = rCursor.maSize;
- mnSlant = rCursor.mnSlant;
mnOrientation = rCursor.mnOrientation;
mnDirection = rCursor.mnDirection;
mbVisible = rCursor.mbVisible;
@@ -434,7 +431,6 @@ bool vcl::Cursor::operator==( const vcl::Cursor& rCursor ) const
return
((maPos == rCursor.maPos) &&
(maSize == rCursor.maSize) &&
- (mnSlant == rCursor.mnSlant) &&
(mnOrientation == rCursor.mnOrientation) &&
(mnDirection == rCursor.mnDirection) &&
(mbVisible == rCursor.mbVisible))