From a2d49b680cd026c3d64683f6ee3ba97e9834a7f7 Mon Sep 17 00:00:00 2001 From: Bartosz Kosiorek Date: Mon, 28 Mar 2022 15:38:48 +0200 Subject: 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 --- basegfx/source/workbench/bezierclip.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'basegfx/source') 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; -- cgit