summaryrefslogtreecommitdiff
path: root/formula
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-28 19:03:52 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-28 19:09:20 +0100
commitc75a5746c63ac6cc5f2839ff1a4fa5776924384e (patch)
tree827a9df50ec8d58909466a68c2fe9d324f3a4ad6 /formula
parent73e2c6ae2734683893657b7f38a9a7ee130e9eb0 (diff)
Clean up C-style casts from pointers to void
Change-Id: I0605d23708895b9e374f141887759266beb542e7
Diffstat (limited to 'formula')
-rw-r--r--formula/source/ui/dlg/funcpage.cxx2
-rw-r--r--formula/source/ui/dlg/structpg.cxx4
2 files changed, 3 insertions, 3 deletions
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<const IFunctionDescription*>(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<IFormulaToken *>(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<IFormulaToken *>(pCurEntry->GetUserData());
if(pSelectedToken!=NULL)
{
if ( !(pSelectedToken->isFunction() || pSelectedToken->getArgumentCount() > 1) )