summaryrefslogtreecommitdiff
path: root/cppcanvas
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-05-28 11:27:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-05-29 14:37:12 +0200
commit17c936bca548acc93d6b2e70593bc711c0e6b8a4 (patch)
treeaf43f36650ea199297988d705903d32501452605 /cppcanvas
parentd4992bb36efb15da91a70e86e68a80f13b97e947 (diff)
loplugin:unusedfields-in-constructor in various
Change-Id: Ie0fb647938e3cf730976fb2e435b92bfd67ef645 Reviewed-on: https://gerrit.libreoffice.org/54998 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppcanvas')
-rw-r--r--cppcanvas/source/mtfrenderer/textaction.cxx9
1 files changed, 4 insertions, 5 deletions
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,