From 17c936bca548acc93d6b2e70593bc711c0e6b8a4 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 28 May 2018 11:27:37 +0200 Subject: loplugin:unusedfields-in-constructor in various Change-Id: Ie0fb647938e3cf730976fb2e435b92bfd67ef645 Reviewed-on: https://gerrit.libreoffice.org/54998 Tested-by: Jenkins Reviewed-by: Noel Grandin --- cppcanvas/source/mtfrenderer/textaction.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'cppcanvas') diff --git a/cppcanvas/source/mtfrenderer/textaction.cxx b/cppcanvas/source/mtfrenderer/textaction.cxx index 7444c06c0012..8292935e976f 100644 --- a/cppcanvas/source/mtfrenderer/textaction.cxx +++ b/cppcanvas/source/mtfrenderer/textaction.cxx @@ -815,7 +815,6 @@ namespace cppcanvas rendering::RenderState maState; const tools::TextLineInfo maTextLineInfo; ::basegfx::B2DSize maLinesOverallSize; - const double mnLineWidth; uno::Reference< rendering::XPolyPolygon2D > mxTextLines; const ::basegfx::B2DSize maReliefOffset; const ::Color maReliefColor; @@ -841,7 +840,6 @@ namespace cppcanvas maState(), maTextLineInfo( tools::createTextLineInfo( rVDev, rState ) ), maLinesOverallSize(), - mnLineWidth( getLineWidth( rVDev, rState, maStringContext ) ), mxTextLines(), maReliefOffset( rReliefOffset ), maReliefColor( rReliefColor ), @@ -849,10 +847,11 @@ namespace cppcanvas maShadowColor( rShadowColor ), maTextDirection( rState.textDirection ) { + const double nLineWidth(getLineWidth( rVDev, rState, maStringContext )); initEffectLinePolyPolygon( maLinesOverallSize, mxTextLines, rCanvas, - mnLineWidth, + nLineWidth, maTextLineInfo ); init( maState, mxFont, @@ -881,7 +880,6 @@ namespace cppcanvas maState(), maTextLineInfo( tools::createTextLineInfo( rVDev, rState ) ), maLinesOverallSize(), - mnLineWidth( getLineWidth( rVDev, rState, maStringContext ) ), mxTextLines(), maReliefOffset( rReliefOffset ), maReliefColor( rReliefColor ), @@ -889,10 +887,11 @@ namespace cppcanvas maShadowColor( rShadowColor ), maTextDirection( rState.textDirection ) { + const double nLineWidth( getLineWidth( rVDev, rState, maStringContext ) ); initEffectLinePolyPolygon( maLinesOverallSize, mxTextLines, rCanvas, - mnLineWidth, + nLineWidth, maTextLineInfo ); init( maState, mxFont, -- cgit