diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-31 13:13:25 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-31 13:13:25 +0200 |
commit | a5a1cf96afec1803dbe41469ab8dc93292337c70 (patch) | |
tree | b9b8d4e7cd1a56e467e5ab984a5602544a987f4f | |
parent | caaf1436d7720ae1b367e645fba70165196744e7 (diff) |
Reduce to static_cast any reinterpret_cast from void pointers
Change-Id: I8b57f50a10760ebd2307640e8d9f9108292e485d
-rw-r--r-- | cui/source/customize/cfg.cxx | 2 | ||||
-rw-r--r-- | cui/source/customize/cfgutil.cxx | 4 | ||||
-rw-r--r-- | cui/source/dialogs/cuicharmap.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx index 19831a59a029..2429961f12f9 100644 --- a/cui/source/customize/cfg.cxx +++ b/cui/source/customize/cfg.cxx @@ -4933,7 +4933,7 @@ uno::Reference< graphic::XGraphic> SvxIconSelectorDialog::GetSelectedIcon() if ( pTbSymbol->IsItemChecked( nId ) ) { result = uno::Reference< graphic::XGraphic >( - reinterpret_cast< graphic::XGraphic* >( + static_cast< graphic::XGraphic* >( pTbSymbol->GetItemData( nId ) ) ); } } diff --git a/cui/source/customize/cfgutil.cxx b/cui/source/customize/cfgutil.cxx index 9dc928527999..53c954415098 100644 --- a/cui/source/customize/cfgutil.cxx +++ b/cui/source/customize/cfgutil.cxx @@ -878,7 +878,7 @@ void SfxConfigGroupListBox::GroupSelected() if ( !GetChildCount( pEntry ) ) { Reference< browse::XBrowseNode > rootNode( - reinterpret_cast< browse::XBrowseNode* >( pInfo->pObject ) ) ; + static_cast< browse::XBrowseNode* >( pInfo->pObject ) ) ; try { if ( rootNode->hasChildNodes() ) @@ -1006,7 +1006,7 @@ void SfxConfigGroupListBox::RequestingChildren( SvTreeListEntry *pEntry ) if ( !GetChildCount( pEntry ) ) { Reference< browse::XBrowseNode > rootNode( - reinterpret_cast< browse::XBrowseNode* >( pInfo->pObject ) ) ; + static_cast< browse::XBrowseNode* >( pInfo->pObject ) ) ; try { if ( rootNode->hasChildNodes() ) diff --git a/cui/source/dialogs/cuicharmap.cxx b/cui/source/dialogs/cuicharmap.cxx index 9c7ab5b9e2e2..f239f7f33df0 100644 --- a/cui/source/dialogs/cuicharmap.cxx +++ b/cui/source/dialogs/cuicharmap.cxx @@ -478,7 +478,7 @@ IMPL_LINK_NOARG(SvxCharacterMap, FontSelectHdl) IMPL_LINK_NOARG(SvxCharacterMap, SubsetSelectHdl) { sal_uInt16 nPos = m_pSubsetLB->GetSelectEntryPos(); - const Subset* pSubset = reinterpret_cast<const Subset*> (m_pSubsetLB->GetEntryData(nPos)); + const Subset* pSubset = static_cast<const Subset*> (m_pSubsetLB->GetEntryData(nPos)); if( pSubset ) { sal_UCS4 cFirst = pSubset->GetRangeMin(); |