Kaydet (Commit) a5a1cf96 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Reduce to static_cast any reinterpret_cast from void pointers

Change-Id: I8b57f50a10760ebd2307640e8d9f9108292e485d
üst caaf1436
......@@ -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 ) ) );
}
}
......
......@@ -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() )
......
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment