Clean up C-style casts from pointers to void

Change-Id: I0605d23708895b9e374f141887759266beb542e7
This commit is contained in:
Stephan Bergmann 2015-03-28 19:03:52 +01:00
parent 73e2c6ae27
commit c75a5746c6
2 changed files with 3 additions and 3 deletions

View File

@ -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()

View File

@ -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) )