From 3a1a448ac4a04137705ea0aaf0163358fd2e5549 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 15 Sep 2021 10:58:18 +0200 Subject: loplugin:constvars Change-Id: I9b35d6333afa6b305bf73fc55a7e60c8365674e9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122134 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basegfx/source/polygon/b2dpolygontools.cxx | 2 +- basegfx/source/polygon/b3dpolygontools.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'basegfx') diff --git a/basegfx/source/polygon/b2dpolygontools.cxx b/basegfx/source/polygon/b2dpolygontools.cxx index 6e78aed363e1..d4644a6f0606 100644 --- a/basegfx/source/polygon/b2dpolygontools.cxx +++ b/basegfx/source/polygon/b2dpolygontools.cxx @@ -1235,7 +1235,7 @@ namespace basegfx::utils // precalculate maximal acceptable length of candidate polygon assuming // we want to create a maximum of fNumberOfAllowedSnippets. For // fNumberOfAllowedSnippets use ca. 65536, double due to line & gap. - static double fNumberOfAllowedSnippets(65535.0 * 2.0); + static const double fNumberOfAllowedSnippets(65535.0 * 2.0); const double fAllowedLength((fNumberOfAllowedSnippets * fDotDashLength) / double(rDotDashArray.size())); const double fCandidateLength(basegfx::utils::getLength(rCandidate)); std::vector aDotDashArray(rDotDashArray); diff --git a/basegfx/source/polygon/b3dpolygontools.cxx b/basegfx/source/polygon/b3dpolygontools.cxx index 1282ddbd216e..377b05802986 100644 --- a/basegfx/source/polygon/b3dpolygontools.cxx +++ b/basegfx/source/polygon/b3dpolygontools.cxx @@ -199,7 +199,7 @@ namespace basegfx::utils // we want to create a maximum of fNumberOfAllowedSnippets. In 3D // use less for fNumberOfAllowedSnippets, ca. 6553.6, double due to line & gap. // Less in 3D due to potentially blowing up to rounded line segments. - static double fNumberOfAllowedSnippets(6553.5 * 2.0); + static const double fNumberOfAllowedSnippets(6553.5 * 2.0); const double fAllowedLength((fNumberOfAllowedSnippets * fDotDashLength) / double(rDotDashArray.size())); const double fCandidateLength(basegfx::utils::getLength(rCandidate)); std::vector aDotDashArray(rDotDashArray); -- cgit