diff --git a/formula/source/ui/dlg/funcpage.cxx b/formula/source/ui/dlg/funcpage.cxx index 42de6fcccff4..a977b174d543 100644 --- a/formula/source/ui/dlg/funcpage.cxx +++ b/formula/source/ui/dlg/funcpage.cxx @@ -220,7 +220,7 @@ OUString FuncPage::GetSelFunctionName() const const IFunctionDescription* FuncPage::GetFuncDesc( sal_Int32 nPos ) const { // not pretty, but hopefully rare - return (const IFunctionDescription*) m_pLbFunction->GetEntryData(nPos); + return static_cast(m_pLbFunction->GetEntryData(nPos)); } void FuncPage::InitLRUList() diff --git a/formula/source/ui/dlg/structpg.cxx b/formula/source/ui/dlg/structpg.cxx index ea3cd2af9663..4bcdc15e44b9 100644 --- a/formula/source/ui/dlg/structpg.cxx +++ b/formula/source/ui/dlg/structpg.cxx @@ -149,7 +149,7 @@ IFormulaToken* StructPage::GetFunctionEntry(SvTreeListEntry* pEntry) { if(pEntry!=NULL) { - IFormulaToken * pToken=(IFormulaToken *)pEntry->GetUserData(); + IFormulaToken * pToken=static_cast(pEntry->GetUserData()); if(pToken!=NULL) { if ( !(pToken->isFunction() || pToken->getArgumentCount() > 1 ) ) @@ -174,7 +174,7 @@ IMPL_LINK( StructPage, SelectHdl, SvTreeListBox*, pTlb ) SvTreeListEntry* pCurEntry=m_pTlbStruct->GetCurEntry(); if(pCurEntry!=NULL) { - pSelectedToken=(IFormulaToken *)pCurEntry->GetUserData(); + pSelectedToken=static_cast(pCurEntry->GetUserData()); if(pSelectedToken!=NULL) { if ( !(pSelectedToken->isFunction() || pSelectedToken->getArgumentCount() > 1) )