diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-22 16:05:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-23 08:59:30 +0200 |
commit | 58ae5fb5ff69a5581cffa583a57ad9381140fa9a (patch) | |
tree | e4776c71b6038e983579facd2ef0c1f8f926d54b /drawinglayer/qa | |
parent | cb37c5f0f3de7b545231a53d46a5271058af76ad (diff) |
loplugin:oncevar in cppcanvas..drawinglayer
Change-Id: I5456aad61fb0dfe6830eae62b91d1a6399d6343f
Reviewed-on: https://gerrit.libreoffice.org/39128
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'drawinglayer/qa')
-rw-r--r-- | drawinglayer/qa/unit/border.cxx | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/drawinglayer/qa/unit/border.cxx b/drawinglayer/qa/unit/border.cxx index 9df6f23d57df..25264c46ee51 100644 --- a/drawinglayer/qa/unit/border.cxx +++ b/drawinglayer/qa/unit/border.cxx @@ -49,17 +49,17 @@ void DrawinglayerBorderTest::testDoubleDecompositionSolid() basegfx::B2DPoint aStart(0, 20); basegfx::B2DPoint aEnd(100, 20); double fLeftWidth = 1.47; - double fDistance = 1.47; - double fRightWidth = 1.47; - double fExtendLeftStart = 0; - double fExtendLeftEnd = 0; - double fExtendRightStart = 0; - double fExtendRightEnd = 0; + double const fDistance = 1.47; + double const fRightWidth = 1.47; + double const fExtendLeftStart = 0; + double const fExtendLeftEnd = 0; + double const fExtendRightStart = 0; + double const fExtendRightEnd = 0; basegfx::BColor aColorRight; basegfx::BColor aColorLeft; basegfx::BColor aColorGap; - bool bHasGapColor = false; - SvxBorderLineStyle nStyle = SvxBorderLineStyle::DOUBLE; + bool const bHasGapColor = false; + SvxBorderLineStyle const nStyle = SvxBorderLineStyle::DOUBLE; rtl::Reference<drawinglayer::primitive2d::BorderLinePrimitive2D> aBorder(new drawinglayer::primitive2d::BorderLinePrimitive2D(aStart, aEnd, fLeftWidth, fDistance, fRightWidth, fExtendLeftStart, fExtendLeftEnd, fExtendRightStart, fExtendRightEnd, aColorRight, aColorLeft, aColorGap, bHasGapColor, nStyle)); // Decompose it into polygons. @@ -98,18 +98,18 @@ void DrawinglayerBorderTest::testDoublePixelProcessing() // 1.47 pixels is 0.03cm at 130% zoom and 96 DPI. basegfx::B2DPoint aStart(0, 20); basegfx::B2DPoint aEnd(100, 20); - double fLeftWidth = 1.47; - double fDistance = 1.47; + double const fLeftWidth = 1.47; + double const fDistance = 1.47; double fRightWidth = 1.47; - double fExtendLeftStart = 0; - double fExtendLeftEnd = 0; - double fExtendRightStart = 0; - double fExtendRightEnd = 0; + double const fExtendLeftStart = 0; + double const fExtendLeftEnd = 0; + double const fExtendRightStart = 0; + double const fExtendRightEnd = 0; basegfx::BColor aColorRight; basegfx::BColor aColorLeft; basegfx::BColor aColorGap; - bool bHasGapColor = false; - SvxBorderLineStyle nStyle = SvxBorderLineStyle::DOUBLE; + bool const bHasGapColor = false; + SvxBorderLineStyle const nStyle = SvxBorderLineStyle::DOUBLE; rtl::Reference<drawinglayer::primitive2d::BorderLinePrimitive2D> xBorder(new drawinglayer::primitive2d::BorderLinePrimitive2D(aStart, aEnd, fLeftWidth, fDistance, fRightWidth, fExtendLeftStart, fExtendLeftEnd, fExtendRightStart, fExtendRightEnd, aColorRight, aColorLeft, aColorGap, bHasGapColor, nStyle)); drawinglayer::primitive2d::Primitive2DContainer aPrimitives; aPrimitives.push_back(drawinglayer::primitive2d::Primitive2DReference(xBorder.get())); |