summaryrefslogtreecommitdiffstats
path: root/basegfx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-27 21:08:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-28 16:51:51 +0200
commitff41cf1b8dbeb36b8824257acb5c5ba272415108 (patch)
treef10fd5ac3dac8b21ab0540a2fc66ee3ebaf16a7e /basegfx
parentUpdate git submodules (diff)
downloadcore-ff41cf1b8dbeb36b8824257acb5c5ba272415108.tar.gz
core-ff41cf1b8dbeb36b8824257acb5c5ba272415108.zip
loplugin:oncevar
Change-Id: I3c014f53607a849c743a2fd1aa47d03d5af978fb Reviewed-on: https://gerrit.libreoffice.org/76495 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basegfx')
-rw-r--r--basegfx/source/polygon/WaveLine.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basegfx/source/polygon/WaveLine.cxx b/basegfx/source/polygon/WaveLine.cxx
index 8385cef7be1b..bc85c4536250 100644
--- a/basegfx/source/polygon/WaveLine.cxx
+++ b/basegfx/source/polygon/WaveLine.cxx
@@ -28,7 +28,7 @@ BASEGFX_DLLPUBLIC B2DPolygon createWaveLinePolygon(basegfx::B2DRectangle const&
// In quadratic bezier the curve is 1/2 of the control height
// so we need to compensate for that.
- double fHeightCompensation = 2.0;
+ constexpr double fHeightCompensation = 2.0;
aPolygon.append(basegfx::B2DPoint(fLastX, fBaseY));