loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I035d84d2de99c4cf790aab6202559e2b35117b64
This commit is contained in:
@@ -79,7 +79,7 @@ FuncPage::FuncPage(vcl::Window* pParent,const IFunctionManager* _pFunctionManage
|
|||||||
for(sal_uInt32 j= 0; j < nCategoryCount; ++j)
|
for(sal_uInt32 j= 0; j < nCategoryCount; ++j)
|
||||||
{
|
{
|
||||||
const IFunctionCategory* pCategory = m_pFunctionManager->getCategory(j);
|
const IFunctionCategory* pCategory = m_pFunctionManager->getCategory(j);
|
||||||
m_pLbCategory->SetEntryData(m_pLbCategory->InsertEntry(pCategory->getName()),(void*)pCategory);
|
m_pLbCategory->SetEntryData(m_pLbCategory->InsertEntry(pCategory->getName()),const_cast<IFunctionCategory *>(pCategory));
|
||||||
}
|
}
|
||||||
|
|
||||||
m_pLbCategory->SelectEntryPos(1);
|
m_pLbCategory->SelectEntryPos(1);
|
||||||
@@ -108,7 +108,7 @@ void FuncPage::impl_addFunctions(const IFunctionCategory* _pCategory)
|
|||||||
{
|
{
|
||||||
TFunctionDesc pDesc(_pCategory->getFunction(i));
|
TFunctionDesc pDesc(_pCategory->getFunction(i));
|
||||||
m_pLbFunction->SetEntryData(
|
m_pLbFunction->SetEntryData(
|
||||||
m_pLbFunction->InsertEntry(pDesc->getFunctionName() ),(void*)pDesc );
|
m_pLbFunction->InsertEntry(pDesc->getFunctionName() ),const_cast<IFunctionDescription *>(pDesc) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -147,7 +147,7 @@ void FuncPage::UpdateFunctionList()
|
|||||||
if (pDesc) // may be null if a function is no longer available
|
if (pDesc) // may be null if a function is no longer available
|
||||||
{
|
{
|
||||||
m_pLbFunction->SetEntryData(
|
m_pLbFunction->SetEntryData(
|
||||||
m_pLbFunction->InsertEntry( pDesc->getFunctionName() ), (void*)pDesc );
|
m_pLbFunction->InsertEntry( pDesc->getFunctionName() ), const_cast<IFunctionDescription *>(pDesc) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -458,8 +458,8 @@ void ParaWin::SetArgumentOffset(sal_uInt16 nOffset)
|
|||||||
OUString aString;
|
OUString aString;
|
||||||
aArgInput[i].SetArgVal(aString);
|
aArgInput[i].SetArgVal(aString);
|
||||||
aArgInput[i].GetArgEdPtr()->Init(
|
aArgInput[i].GetArgEdPtr()->Init(
|
||||||
(i==0) ? (ArgEdit *)NULL : aArgInput[i-1].GetArgEdPtr(),
|
(i==0) ? nullptr : aArgInput[i-1].GetArgEdPtr(),
|
||||||
(i==3 || i==nArgs-1) ? (ArgEdit *)NULL : aArgInput[i+1].GetArgEdPtr(),
|
(i==3 || i==nArgs-1) ? nullptr : aArgInput[i+1].GetArgEdPtr(),
|
||||||
*m_pSlider, nArgs );
|
*m_pSlider, nArgs );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user