From d58105e4512fc8a44e68379215d0c79f55b871bc Mon Sep 17 00:00:00 2001 From: Johnny_M Date: Sun, 28 Jan 2018 13:29:21 +0100 Subject: [PATCH] Translate German variable name Korr -> Corr in math Change-Id: I33c3d0fa62aa0c4b6fd418ba2e49b90b019b8714 Reviewed-on: https://gerrit.libreoffice.org/48782 Tested-by: Jenkins Reviewed-by: Michael Stahl --- sal/rtl/math.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx index 9f25d653f3f1..8435715a1afc 100644 --- a/sal/rtl/math.cxx +++ b/sal/rtl/math.cxx @@ -75,7 +75,7 @@ static double getN10Exp(int nExp) namespace { -double const nKorrVal[] = { +double const nCorrVal[] = { 0, 9e-1, 9e-2, 9e-3, 9e-4, 9e-5, 9e-6, 9e-7, 9e-8, 9e-9, 9e-10, 9e-11, 9e-12, 9e-13, 9e-14, 9e-15 }; @@ -539,7 +539,7 @@ inline void doubleToString(typename T::String ** pResult, { int nDigit; if (nDigits-1 == 0 && i > 0 && i < 14) - nDigit = static_cast< int >(floor( fValue + nKorrVal[15-i])); + nDigit = static_cast< int >(floor( fValue + nCorrVal[15-i])); else nDigit = static_cast< int >(fValue + 1E-15); @@ -1116,7 +1116,7 @@ double SAL_CALL rtl_math_round(double fValue, int nDecPlaces, else nIndex = 15 - nExp; - fValue = floor(fValue + 0.5 + nKorrVal[nIndex]); + fValue = floor(fValue + 0.5 + nCorrVal[nIndex]); } break; case rtl_math_RoundingMode_Down: