[Libreoffice-commits] core.git: sc/source
Luboš Luňák
l.lunak at collabora.com
Fri Jun 22 14:59:14 UTC 2018
sc/source/core/data/formulacell.cxx | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
New commits:
commit f0ff9739381b91941b8a17ac9210389ec4c8d233
Author: Luboš Luňák <l.lunak at collabora.com>
Date: Fri Jun 22 15:40:02 2018 +0200
fix debug code
Change-Id: I68d3d3adb691be824ee54ad2147ed5423772a72a
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index dc13f05a68d9..462d09891698 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -158,10 +158,10 @@ static struct DebugCalculation
mvPos.back().maResult = rtl::math::doubleToUString( fVal, rtl_math_StringFormat_G, 2, '.', true);
}
- void storeResultError( const sal_uInt16& nErr )
+ void storeResultError( FormulaError nErr )
{
if (mbActive && !mvPos.empty())
- mvPos.back().maResult = "Err:" + OUString::number( nErr);
+ mvPos.back().maResult = "Err:" + OUString::number( int( nErr ));
}
void enterGroup()
@@ -1772,7 +1772,8 @@ void ScFormulaCell::Interpret()
}
#if DEBUG_CALCULATION
- if (sal_uInt16 nErr = aResult.GetResultError())
+ FormulaError nErr = aResult.GetResultError();
+ if (nErr != FormulaError::NONE)
aDC.storeResultError( nErr);
else if (aResult.IsValue())
aDC.storeResult( aResult.GetDouble());
More information about the Libreoffice-commits
mailing list