Kaydet (Commit) bb60b49c authored tarafından Stephan Bergmann's avatar Stephan Bergmann

More loplugin:cstylecast: formula

Change-Id: I0a6f4eaf49282a6aa74b24ea62736065d1786f58
üst e1c753da
......@@ -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();
}
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment