From a5a1cf96afec1803dbe41469ab8dc93292337c70 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 31 Mar 2015 13:13:25 +0200 Subject: Reduce to static_cast any reinterpret_cast from void pointers Change-Id: I8b57f50a10760ebd2307640e8d9f9108292e485d --- cui/source/customize/cfg.cxx | 2 +- cui/source/customize/cfgutil.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cui/source/customize') 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() ) -- cgit