From bb60b49c3ad5203a657ebd0b2a10fa77fc6a9b05 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 15 Jan 2018 09:05:23 +0100 Subject: [PATCH] More loplugin:cstylecast: formula Change-Id: I0a6f4eaf49282a6aa74b24ea62736065d1786f58 --- formula/source/ui/dlg/formula.cxx | 2 +- include/formula/errorcodes.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.