From 92204f06b53846cd60055df1757a0b20cbe5eb6e Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 6 Mar 2014 12:18:29 +0000 Subject: coverity#708643 nOffsetY missing from copy ctor its normally always 0, so shrink the code based on that Change-Id: Ic9a4615f0ecb0713a00e4acd73485f99fd50a859 --- vcl/source/window/cursor.cxx | 4 ---- 1 file changed, 4 deletions(-) (limited to 'vcl') diff --git a/vcl/source/window/cursor.cxx b/vcl/source/window/cursor.cxx index 16bc80b8705c..669b05406070 100644 --- a/vcl/source/window/cursor.cxx +++ b/vcl/source/window/cursor.cxx @@ -133,12 +133,9 @@ void Cursor::ImplDraw() mpData->mnPixSlant = pWindow->LogicToPixel( Size( mnSlant, 0 ) ).Width(); mpData->mnOrientation = mnOrientation; mpData->mnDirection = mnDirection; - long nOffsetY = pWindow->LogicToPixel( Size( 0, mnOffsetY ) ).Height(); // correct the position with the offset - mpData->maPixPos.Y() -= nOffsetY; mpData->maPixRotOff = mpData->maPixPos; - mpData->maPixRotOff.Y() += nOffsetY; // use width (as set in Settings) if size is 0, if ( !mpData->maPixSize.Width() ) @@ -278,7 +275,6 @@ Cursor::Cursor() mpData = NULL; mpWindow = NULL; mnSlant = 0; - mnOffsetY = 0; mnOrientation = 0; mnDirection = 0; mnStyle = 0; -- cgit