summaryrefslogtreecommitdiff
path: root/basegfx/source
diff options
context:
space:
mode:
authorBartosz Kosiorek <gang65@poczta.onet.pl>2022-03-28 15:38:48 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2022-03-29 09:17:42 +0200
commita2d49b680cd026c3d64683f6ee3ba97e9834a7f7 (patch)
tree70e17224f86ea2255c24afdd1251c1ca800153f5 /basegfx/source
parent4cdb50923ed00b9219a9f4cb36693b3a8c444f7c (diff)
tdf#147906 change sqrt(a * a + b * b) occurences to std::hypot(a, b)
Change-Id: Ic84899bf34f98382e6cc1ffc14310b1667279ee2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132214 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'basegfx/source')
-rw-r--r--basegfx/source/workbench/bezierclip.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basegfx/source/workbench/bezierclip.cxx b/basegfx/source/workbench/bezierclip.cxx
index 7c9999939f9b..676f239efd10 100644
--- a/basegfx/source/workbench/bezierclip.cxx
+++ b/basegfx/source/workbench/bezierclip.cxx
@@ -87,7 +87,7 @@ void Impl_calcFatLine( FatLine& line, const Bezier& c )
line.b = (c.p0.x - c.p3.x);
// normalize
- const double len( sqrt( line.a*line.a + line.b*line.b ) );
+ const double len(std::hypot(line.a, line.b));
if( !tolZero(len) )
{
line.a /= len;