More loplugin:cstylecast: formula

Change-Id: I0a6f4eaf49282a6aa74b24ea62736065d1786f58
This commit is contained in:
Stephan Bergmann
2018-01-15 09:05:23 +01:00
parent e1c753da32
commit bb60b49c3a
2 changed files with 2 additions and 2 deletions

View File

@@ -457,7 +457,7 @@ sal_Int32 FormulaDlg_Impl::GetFunctionPos(sal_Int32 nPos)
const OUString aString = xParser->printFormula( aArgs, aRefPos);
const sheet::FormulaToken* pNextToken = pIter + 1;
if ( !m_bUserMatrixFlag && FormulaCompiler::IsMatrixFunction((OpCode)eOp) )
if ( !m_bUserMatrixFlag && FormulaCompiler::IsMatrixFunction(static_cast<OpCode>(eOp)) )
{
m_pBtnMatrix->Check();
}

View File

@@ -110,7 +110,7 @@ inline FormulaError GetDoubleErrorValue( double fVal )
// Another NAN, e.g. -nan(0x8000000000000) from calculating with -inf
return FormulaError::IllegalFPOperation;
// Any other error known to us as error code.
return (FormulaError)(nErr & 0x0000ffff);
return static_cast<FormulaError>(nErr & 0x0000ffff);
}
/** Error values that are accepted as detailed "#ERRxxx!" constants.