summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/core/tool/interpr3.cxx2
-rw-r--r--scaddins/source/analysis/analysishelper.hxx2
-rw-r--r--svx/source/engine3d/camera3d.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/tool/interpr3.cxx b/sc/source/core/tool/interpr3.cxx
index 962f61970ee6..f55fc1636959 100644
--- a/sc/source/core/tool/interpr3.cxx
+++ b/sc/source/core/tool/interpr3.cxx
@@ -5096,7 +5096,7 @@ static void lcl_convertToPolar(std::vector<double>& rCmplxArray, double fMinMag)
{
fR = rCmplxArray[nIdx];
fI = rCmplxArray[nPoints+nIdx];
- fMag = sqrt(fR*fR + fI*fI);
+ fMag = std::hypot(fR, fI);
if (fMag < fMinMag)
{
fMag = 0.0;
diff --git a/scaddins/source/analysis/analysishelper.hxx b/scaddins/source/analysis/analysishelper.hxx
index 093d939301eb..835593518a98 100644
--- a/scaddins/source/analysis/analysishelper.hxx
+++ b/scaddins/source/analysis/analysishelper.hxx
@@ -652,7 +652,7 @@ inline double Complex::Imag() const
inline double Complex::Abs() const
{
- return sqrt( r * r + i * i );
+ return std::hypot(r, i);
}
diff --git a/svx/source/engine3d/camera3d.cxx b/svx/source/engine3d/camera3d.cxx
index 30a1b09fb36e..135ff9b27a77 100644
--- a/svx/source/engine3d/camera3d.cxx
+++ b/svx/source/engine3d/camera3d.cxx
@@ -108,7 +108,7 @@ void Camera3D::SetBankAngle(double fAngle)
// Rotate on Z axis, to rotate the BankAngle and back
basegfx::B3DHomMatrix aTf;
- const double fV(sqrt(aDiff.getY() * aDiff.getY() + aDiff.getZ() * aDiff.getZ()));
+ const double fV(std::hypot(aDiff.getY(), aDiff.getZ()));
if (fV != 0.0)
{