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

Clean up C-style casts from pointers to void

Change-Id: I0605d23708895b9e374f141887759266beb542e7
üst 73e2c6ae
...@@ -220,7 +220,7 @@ OUString FuncPage::GetSelFunctionName() const ...@@ -220,7 +220,7 @@ OUString FuncPage::GetSelFunctionName() const
const IFunctionDescription* FuncPage::GetFuncDesc( sal_Int32 nPos ) const const IFunctionDescription* FuncPage::GetFuncDesc( sal_Int32 nPos ) const
{ {
// not pretty, but hopefully rare // not pretty, but hopefully rare
return (const IFunctionDescription*) m_pLbFunction->GetEntryData(nPos); return static_cast<const IFunctionDescription*>(m_pLbFunction->GetEntryData(nPos));
} }
void FuncPage::InitLRUList() void FuncPage::InitLRUList()
......
...@@ -149,7 +149,7 @@ IFormulaToken* StructPage::GetFunctionEntry(SvTreeListEntry* pEntry) ...@@ -149,7 +149,7 @@ IFormulaToken* StructPage::GetFunctionEntry(SvTreeListEntry* pEntry)
{ {
if(pEntry!=NULL) if(pEntry!=NULL)
{ {
IFormulaToken * pToken=(IFormulaToken *)pEntry->GetUserData(); IFormulaToken * pToken=static_cast<IFormulaToken *>(pEntry->GetUserData());
if(pToken!=NULL) if(pToken!=NULL)
{ {
if ( !(pToken->isFunction() || pToken->getArgumentCount() > 1 ) ) if ( !(pToken->isFunction() || pToken->getArgumentCount() > 1 ) )
...@@ -174,7 +174,7 @@ IMPL_LINK( StructPage, SelectHdl, SvTreeListBox*, pTlb ) ...@@ -174,7 +174,7 @@ IMPL_LINK( StructPage, SelectHdl, SvTreeListBox*, pTlb )
SvTreeListEntry* pCurEntry=m_pTlbStruct->GetCurEntry(); SvTreeListEntry* pCurEntry=m_pTlbStruct->GetCurEntry();
if(pCurEntry!=NULL) if(pCurEntry!=NULL)
{ {
pSelectedToken=(IFormulaToken *)pCurEntry->GetUserData(); pSelectedToken=static_cast<IFormulaToken *>(pCurEntry->GetUserData());
if(pSelectedToken!=NULL) if(pSelectedToken!=NULL)
{ {
if ( !(pSelectedToken->isFunction() || pSelectedToken->getArgumentCount() > 1) ) if ( !(pSelectedToken->isFunction() || pSelectedToken->getArgumentCount() > 1) )
......
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