diff --git a/formula/source/ui/dlg/formula.cxx b/formula/source/ui/dlg/formula.cxx index 5dd5ad1f67cc..745554c5493e 100644 --- a/formula/source/ui/dlg/formula.cxx +++ b/formula/source/ui/dlg/formula.cxx @@ -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(eOp)) ) { m_pBtnMatrix->Check(); } diff --git a/include/formula/errorcodes.hxx b/include/formula/errorcodes.hxx index bb970a9b6718..41bffa4d9ef9 100644 --- a/include/formula/errorcodes.hxx +++ b/include/formula/errorcodes.hxx @@ -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(nErr & 0x0000ffff); } /** Error values that are accepted as detailed "#ERRxxx!" constants.