From 02b4e4cc294bca5256c886374bc9c97420980bdd Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 26 Mar 2015 15:28:10 +0100 Subject: const_cast: convert some C-style casts and remove some redundant ones Change-Id: I302db31913a60a677b8dc226e48bd8f43b055a1e --- cui/source/dialogs/iconcdlg.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cui/source/dialogs/iconcdlg.cxx') diff --git a/cui/source/dialogs/iconcdlg.cxx b/cui/source/dialogs/iconcdlg.cxx index 9832ce92d329..f33f839d2527 100644 --- a/cui/source/dialogs/iconcdlg.cxx +++ b/cui/source/dialogs/iconcdlg.cxx @@ -230,7 +230,7 @@ IconChoiceDialog ::~IconChoiceDialog () } if ( pData->bOnDemand ) - delete (SfxItemSet*)&pData->pPage->GetItemSet(); + delete &pData->pPage->GetItemSet(); delete pData->pPage; } delete pData; @@ -403,7 +403,7 @@ IMPL_LINK_NOARG(IconChoiceDialog, ResetHdl) { // CSet on AIS has problems here, therefore separated const SfxItemSet* _pSet = &( pData->pPage->GetItemSet() ); - pData->pPage->Reset( *(SfxItemSet*)_pSet ); + pData->pPage->Reset( *const_cast(_pSet) ); } else pData->pPage->Reset( *pSet ); @@ -558,7 +558,7 @@ void IconChoiceDialog::ResetPageImpl () { // CSet on AIS has problems here, therefore separated const SfxItemSet* _pSet = &pData->pPage->GetItemSet(); - pData->pPage->Reset( *(SfxItemSet*)_pSet ); + pData->pPage->Reset( *const_cast(_pSet) ); } else pData->pPage->Reset( *pSet ); -- cgit v1.2.3