From 87e2f7709b0541958cb5f4cecf24857593777952 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Fri, 13 Apr 2012 20:17:06 +0200 Subject: remove unused variables --- sw/source/core/draw/dflyobj.cxx | 1 - sw/source/core/layout/paintfrm.cxx | 1 - sw/source/core/layout/virtoutp.cxx | 1 - sw/source/ui/ribbar/conpoly.cxx | 1 - sw/source/ui/ribbar/conrect.cxx | 2 -- sw/source/ui/uiview/swcli.cxx | 3 +-- 6 files changed, 1 insertion(+), 8 deletions(-) (limited to 'sw') diff --git a/sw/source/core/draw/dflyobj.cxx b/sw/source/core/draw/dflyobj.cxx index 6eac60586127..8e1e0a9f878d 100644 --- a/sw/source/core/draw/dflyobj.cxx +++ b/sw/source/core/draw/dflyobj.cxx @@ -962,7 +962,6 @@ SdrObject* SwVirtFlyDrawObj::CheckMacroHit( const SdrObjMacroHitRec& rRec ) cons if( aRect.IsInside( rRec.aPos ) ) { SwRect aActRect( aRect ); - Size aActSz( aRect.SSize() ); aRect.Pos().X() += rRec.nTol; aRect.Pos().Y() += rRec.nTol; aRect.SSize().Height()-= 2 * rRec.nTol; diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx index 80ec5a1e310c..9ad1a025d36d 100644 --- a/sw/source/core/layout/paintfrm.cxx +++ b/sw/source/core/layout/paintfrm.cxx @@ -2062,7 +2062,6 @@ void lcl_AdjustRectToPixelSize( SwRect& io_aSwRect, const OutputDevice &aOut ) Rectangle aTestNewPxRect = aOut.LogicToPixel( aSizedRect ); OSL_ENSURE( aTestOrgPxRect == aTestNewPxRect, "Error in lcl_AlignRectToPixelSize(..): Adjusted rectangle has incorrect position or size"); - Rectangle aTestNewRect( aSizedRect ); /// check Left() --aSizedRect.Left(); aTestNewPxRect = aOut.LogicToPixel( aSizedRect ); diff --git a/sw/source/core/layout/virtoutp.cxx b/sw/source/core/layout/virtoutp.cxx index 831b9e02b888..715c63a5e2b5 100644 --- a/sw/source/core/layout/virtoutp.cxx +++ b/sw/source/core/layout/virtoutp.cxx @@ -245,7 +245,6 @@ void SwLayVout::Enter( ViewShell *pShell, SwRect &rRect, sal_Bool bOn ) void SwLayVout::_Flush() { OSL_ENSURE( pVirDev, "SwLayVout::DrawOut: nothing left Toulouse" ); - Rectangle aTmp( aRect.SVRect() ); pOut->DrawOutDev( aRect.Pos(), aRect.SSize(), aRect.Pos(), aRect.SSize(), *pVirDev ); SetOutDev( pSh, pOut ); diff --git a/sw/source/ui/ribbar/conpoly.cxx b/sw/source/ui/ribbar/conpoly.cxx index 0c7b80271fbd..1869d7f16ceb 100644 --- a/sw/source/ui/ribbar/conpoly.cxx +++ b/sw/source/ui/ribbar/conpoly.cxx @@ -113,7 +113,6 @@ sal_Bool ConstPolygon::MouseButtonUp(const MouseEvent& rMEvt) } else { - Point aPnt(m_pWin->PixelToLogic(rMEvt.GetPosPixel())); bReturn = SwDrawBase::MouseButtonUp(rMEvt); // #i85045# removed double mechanism to check for AutoClose polygon diff --git a/sw/source/ui/ribbar/conrect.cxx b/sw/source/ui/ribbar/conrect.cxx index fbeb3f5d9db9..6de22166371a 100644 --- a/sw/source/ui/ribbar/conrect.cxx +++ b/sw/source/ui/ribbar/conrect.cxx @@ -94,8 +94,6 @@ sal_Bool ConstRectangle::MouseButtonDown(const MouseEvent& rMEvt) sal_Bool ConstRectangle::MouseButtonUp(const MouseEvent& rMEvt) { - Point aPnt(m_pWin->PixelToLogic(rMEvt.GetPosPixel())); - sal_Bool bRet = SwDrawBase::MouseButtonUp(rMEvt); if( bRet ) { diff --git a/sw/source/ui/uiview/swcli.cxx b/sw/source/ui/uiview/swcli.cxx index 7ef0d90e5c0f..53a7e0556bbc 100644 --- a/sw/source/ui/uiview/swcli.cxx +++ b/sw/source/ui/uiview/swcli.cxx @@ -96,8 +96,7 @@ void SwOleClient::RequestNewObjectArea( Rectangle& aLogRect ) void SwOleClient::ObjectAreaChanged() { SwWrtShell &rSh = ((SwView*)GetViewShell())->GetWrtShell(); - SwRect aFrm( rSh.GetAnyCurRect( RECT_FLY_EMBEDDED, 0, GetObject() )), - aPrt( rSh.GetAnyCurRect( RECT_FLY_PRT_EMBEDDED, 0, GetObject() )); + SwRect aFrm( rSh.GetAnyCurRect( RECT_FLY_EMBEDDED, 0, GetObject() )); if ( !aFrm.IsOver( rSh.VisArea() ) ) rSh.MakeVisible( aFrm ); } -- cgit v1.2.3