summaryrefslogtreecommitdiff
path: root/cui/source/dialogs/iconcdlg.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-28 19:00:29 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-28 19:09:19 +0100
commit170012948c063521499ab685906354f184ac33be (patch)
treea13e756e8e85b0fb2b8795f5d0f60bed98836b22 /cui/source/dialogs/iconcdlg.cxx
parente97b3272668ecbe5454ffc7f394680dbcae27395 (diff)
Clean up C-style casts from pointers to void
Change-Id: I544fc582d375d1e49f84309e722f669d734cf029
Diffstat (limited to 'cui/source/dialogs/iconcdlg.cxx')
-rw-r--r--cui/source/dialogs/iconcdlg.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/dialogs/iconcdlg.cxx b/cui/source/dialogs/iconcdlg.cxx
index f33f839d2527..1c999e3cde65 100644
--- a/cui/source/dialogs/iconcdlg.cxx
+++ b/cui/source/dialogs/iconcdlg.cxx
@@ -240,7 +240,7 @@ IconChoiceDialog ::~IconChoiceDialog ()
for ( sal_uLong i=0; i < m_pIconCtrl->GetEntryCount(); i++)
{
SvxIconChoiceCtrlEntry* pEntry = m_pIconCtrl->GetEntry ( i );
- sal_uInt16* pUserData = (sal_uInt16*) pEntry->GetUserData();
+ sal_uInt16* pUserData = static_cast<sal_uInt16*>(pEntry->GetUserData());
delete pUserData;
}
@@ -341,7 +341,7 @@ IMPL_LINK_NOARG(IconChoiceDialog , ChosePageHdl_Impl)
if ( !pEntry )
pEntry = m_pIconCtrl->GetCursor( );
- sal_uInt16 *pId = (sal_uInt16*)pEntry->GetUserData ();
+ sal_uInt16 *pId = static_cast<sal_uInt16*>(pEntry->GetUserData ());
if( *pId != mnCurrentPageId )
{
@@ -821,7 +821,7 @@ void IconChoiceDialog::FocusOnIcon( sal_uInt16 nId )
for ( sal_uInt16 i=0; i<m_pIconCtrl->GetEntryCount(); i++)
{
SvxIconChoiceCtrlEntry* pEntry = m_pIconCtrl->GetEntry ( i );
- sal_uInt16* pUserData = (sal_uInt16*) pEntry->GetUserData();
+ sal_uInt16* pUserData = static_cast<sal_uInt16*>(pEntry->GetUserData());
if ( pUserData && *pUserData == nId )
{