Clean up C-style casts from pointers to void
Change-Id: I0605d23708895b9e374f141887759266beb542e7
This commit is contained in:
@@ -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)
|
|||||||
{
|
{
|
||||||
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 )
|
|||||||
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) )
|
||||||
|
Reference in New Issue
Block a user