Clean up C-style casts from pointers to void
Change-Id: I0605d23708895b9e374f141887759266beb542e7
This commit is contained in:
parent
73e2c6ae27
commit
c75a5746c6
@ -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()
|
||||
|
@ -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) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user