From 6561fc32afaa0ca992ae988b6d08c62e3e516d43 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 26 Jun 2017 14:47:52 +0200 Subject: loplugin:oncevar in svx Change-Id: I22a3a13e059ac7d3479f12860564fe3eb1b55e44 Reviewed-on: https://gerrit.libreoffice.org/39282 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/uitest/sdrobject.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'svx/source/uitest') diff --git a/svx/source/uitest/sdrobject.cxx b/svx/source/uitest/sdrobject.cxx index 7852d6a8bec7..f70cb2e3c511 100644 --- a/svx/source/uitest/sdrobject.cxx +++ b/svx/source/uitest/sdrobject.cxx @@ -95,8 +95,7 @@ void SdrUIObject::execute(const OUString& rAction, throw css::uno::RuntimeException("missing parameter FRAC_Y"); double nFracY = itrFracY->second.toDouble(); Fraction aFracY(nFracY); - bool bRelative = true; - pObj->Resize(aPos, aFracX, aFracY, bRelative); + pObj->Resize(aPos, aFracX, aFracY, true/*bRelative*/); } else if (rAction == "CROP") { @@ -156,8 +155,7 @@ void SdrUIObject::execute(const OUString& rAction, else if (rAction == "SHEAR") { Point aPos; - double nAngle = 0; - pObj->Shear(aPos, nAngle, 0, false); + pObj->Shear(aPos, 0.0/*nAngle*/, 0, false); } } -- cgit