From 08ab1f46b192a188935fdffbefdc9f3973583cdf Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 24 Feb 2018 13:47:25 +0200 Subject: loplugin:oncevar extend to tools/gen.hxx types Change-Id: I5c75875da44334569c02e2ff039b33c38397a0a2 Reviewed-on: https://gerrit.libreoffice.org/50283 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/source/ui/Accessibility/AccessibleText.cxx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'sc/source/ui/Accessibility/AccessibleText.cxx') diff --git a/sc/source/ui/Accessibility/AccessibleText.cxx b/sc/source/ui/Accessibility/AccessibleText.cxx index e904086483fc..4842d7b211c6 100644 --- a/sc/source/ui/Accessibility/AccessibleText.cxx +++ b/sc/source/ui/Accessibility/AccessibleText.cxx @@ -265,9 +265,8 @@ bool ScPreviewViewForwarder::IsValid() const tools::Rectangle ScPreviewViewForwarder::GetVisArea() const { - tools::Rectangle aVisArea; OSL_FAIL("should be implemented in an abrevated class"); - return aVisArea; + return tools::Rectangle(); } Point ScPreviewViewForwarder::LogicToPixel( const Point& rPoint, const MapMode& rMapMode ) const @@ -325,8 +324,7 @@ tools::Rectangle ScPreviewViewForwarder::GetVisRect() const vcl::Window* pWindow = mpViewShell->GetWindow(); if ( pWindow ) aOutputSize = pWindow->GetOutputSizePixel(); - Point aPoint; - tools::Rectangle aVisRect( aPoint, aOutputSize ); + tools::Rectangle aVisRect( Point(), aOutputSize ); return aVisRect; } return tools::Rectangle(); @@ -1274,8 +1272,7 @@ SvxTextForwarder* ScAccessiblePreviewHeaderCellTextData::GetTextForwarder() vcl::Window* pWindow = mpViewShell->GetWindow(); if ( pWindow ) aOutputSize = pWindow->GetOutputSizePixel(); - Point aPoint; - tools::Rectangle aVisRect( aPoint, aOutputSize ); + tools::Rectangle aVisRect( Point(), aOutputSize ); Size aSize(mpViewShell->GetLocationData().GetHeaderCellOutputRect(aVisRect, aCellPos, mbColHeader).GetSize()); if (pWindow) aSize = pWindow->PixelToLogic(aSize, pEditEngine->GetRefMapMode()); @@ -1501,8 +1498,7 @@ SvxTextForwarder* ScAccessibleNoteTextData::GetTextForwarder() vcl::Window* pWindow = mpViewShell->GetWindow(); if ( pWindow ) aOutputSize = pWindow->GetOutputSizePixel(); - Point aPoint; - tools::Rectangle aVisRect( aPoint, aOutputSize ); + tools::Rectangle aVisRect( Point(), aOutputSize ); Size aSize(mpViewShell->GetLocationData().GetNoteInRangeOutputRect(aVisRect, mbMarkNote, maCellPos).GetSize()); if (pWindow) aSize = pWindow->PixelToLogic(aSize, mpEditEngine->GetRefMapMode()); -- cgit