summaryrefslogtreecommitdiff
path: root/sc/source/ui/formdlg
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-28 19:06:09 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-28 19:09:24 +0100
commit77d1a61c95779728799277565de3d6528ddc594b (patch)
tree0b04a079a0a47e2c2efaf6e2318cf447cdff0096 /sc/source/ui/formdlg
parenta98887d9b82327d4183d24a56ec0636953515aa3 (diff)
Clean up C-style casts from pointers to void
Change-Id: Ie42848cc9f2d74beeb76e1c5e49ef40b99f6d5f6
Diffstat (limited to 'sc/source/ui/formdlg')
-rw-r--r--sc/source/ui/formdlg/dwfunctr.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/ui/formdlg/dwfunctr.cxx b/sc/source/ui/formdlg/dwfunctr.cxx
index 5809ea5dc720..65604ad60cac 100644
--- a/sc/source/ui/formdlg/dwfunctr.cxx
+++ b/sc/source/ui/formdlg/dwfunctr.cxx
@@ -551,8 +551,8 @@ void ScFunctionDockWin::SetDescription()
{
aFiFuncDesc.SetText( EMPTY_OUSTRING );
const ScFuncDesc* pDesc =
- (const ScFuncDesc*)pAllFuncList->GetEntryData(
- pAllFuncList->GetSelectEntryPos() );
+ static_cast<const ScFuncDesc*>(pAllFuncList->GetEntryData(
+ pAllFuncList->GetSelectEntryPos() ));
if (pDesc)
{
pDesc->initArgumentInfo(); // full argument info is needed
@@ -816,8 +816,8 @@ void ScFunctionDockWin::DoEnter()
pHdl->ClearText();
}
const ScFuncDesc* pDesc =
- (const ScFuncDesc*)pAllFuncList->GetEntryData(
- pAllFuncList->GetSelectEntryPos() );
+ static_cast<const ScFuncDesc*>(pAllFuncList->GetEntryData(
+ pAllFuncList->GetSelectEntryPos() ));
if (pDesc)
{
pFuncDesc=pDesc;
@@ -944,8 +944,8 @@ IMPL_LINK( ScFunctionDockWin, SelHdl, ListBox*, pLb )
IMPL_LINK( ScFunctionDockWin, SetSelectionHdl, void*, pCtrl )
{
- if ((ImageButton *)pCtrl == &aInsertButton ||
- (ListBox *)pCtrl == &aFuncList)
+ if (static_cast<ImageButton *>(pCtrl) == &aInsertButton ||
+ static_cast<ListBox *>(pCtrl) == &aFuncList)
{
DoEnter(); // Uebernimmt die Eingabe
}