diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-20 16:49:57 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-21 14:03:43 +0100 |
commit | c4b3801c22c6d4dc6fe34033089c6398bcd433d3 (patch) | |
tree | 2620a6bb6c49c59652751ff73fe1b7754fc13a74 /sd | |
parent | 42bb1308fffbd26719618f4cbc986ace9bf0dd33 (diff) |
Some more loplugin:cstylecast: sd
Change-Id: I3562efaab55655bc758fe94090b2b6d05b548098
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/ppt/propread.cxx | 6 | ||||
-rw-r--r-- | sd/source/ui/app/sdmod2.cxx | 10 | ||||
-rw-r--r-- | sd/source/ui/dlg/dlgolbul.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/dlg/docprev.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/dlg/prltempl.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/dlg/prntopts.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/dlg/sdabstdlg.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/dlg/sdtreelb.cxx | 12 | ||||
-rw-r--r-- | sd/source/ui/docshell/docshel4.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/func/fuolbull.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/remotecontrol/BluetoothServer.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/remotecontrol/DiscoveryService.cxx | 6 | ||||
-rw-r--r-- | sd/source/ui/unoidl/UnoDocumentSettings.cxx | 8 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unosrch.cxx | 6 | ||||
-rw-r--r-- | sd/source/ui/view/drtxtob1.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/viewshel.cxx | 2 |
16 files changed, 37 insertions, 37 deletions
diff --git a/sd/source/filter/ppt/propread.cxx b/sd/source/filter/ppt/propread.cxx index 2318c4b8be1a..96466d08c1d8 100644 --- a/sd/source/filter/ppt/propread.cxx +++ b/sd/source/filter/ppt/propread.cxx @@ -103,7 +103,7 @@ bool PropItem::Read( OUString& rString, sal_uInt32 nStringType, bool bAlign ) nItemSize >>= 1; if ( nItemSize > 1 ) { - sal_Unicode* pWString = (sal_Unicode*)pString; + sal_Unicode* pWString = reinterpret_cast<sal_Unicode*>(pString); for ( i = 0; i < nItemSize; i++ ) ReadUInt16( pWString[ i ] ); rString = OUString(pWString, lcl_getMaxSafeStrLen(nItemSize)); @@ -263,7 +263,7 @@ bool Section::GetDictionary( Dictionary& rDict ) if ( iter != maEntries.end() ) { sal_uInt32 nDictCount, nId, nSize, nPos; - SvMemoryStream aStream( (sal_Int8*)iter->mpBuf, iter->mnSize, StreamMode::READ ); + SvMemoryStream aStream( iter->mpBuf, iter->mnSize, StreamMode::READ ); aStream.Seek( STREAM_SEEK_TO_BEGIN ); aStream.ReadUInt32( nDictCount ); for ( sal_uInt32 i = 0; i < nDictCount; i++ ) @@ -281,7 +281,7 @@ bool Section::GetDictionary( Dictionary& rDict ) { nSize >>= 1; aStream.Seek( nPos ); - sal_Unicode* pWString = (sal_Unicode*)pString; + sal_Unicode* pWString = reinterpret_cast<sal_Unicode*>(pString); for ( i = 0; i < nSize; i++ ) aStream.ReadUInt16( pWString[ i ] ); aString = OUString(pWString, lcl_getMaxSafeStrLen(nSize)); diff --git a/sd/source/ui/app/sdmod2.cxx b/sd/source/ui/app/sdmod2.cxx index dd5c666d98c5..f30c937ffbb7 100644 --- a/sd/source/ui/app/sdmod2.cxx +++ b/sd/source/ui/app/sdmod2.cxx @@ -561,7 +561,7 @@ void SdModule::ApplyItemSet( sal_uInt16 nSlot, const SfxItemSet& rSet ) // Layout const SdOptionsLayoutItem* pLayoutItem = NULL; if( SfxItemState::SET == rSet.GetItemState( ATTR_OPTIONS_LAYOUT, - false, (const SfxPoolItem**) &pLayoutItem )) + false, reinterpret_cast<const SfxPoolItem**>(&pLayoutItem) )) { pLayoutItem->SetOptions( pOptions ); } @@ -605,7 +605,7 @@ void SdModule::ApplyItemSet( sal_uInt16 nSlot, const SfxItemSet& rSet ) // Contents const SdOptionsContentsItem* pContentsItem = NULL; if( SfxItemState::SET == rSet.GetItemState( ATTR_OPTIONS_CONTENTS, - false, (const SfxPoolItem**) &pContentsItem )) + false, reinterpret_cast<const SfxPoolItem**>(&pContentsItem) )) { pContentsItem->SetOptions( pOptions ); } @@ -613,7 +613,7 @@ void SdModule::ApplyItemSet( sal_uInt16 nSlot, const SfxItemSet& rSet ) // Misc const SdOptionsMiscItem* pMiscItem = NULL; if( SfxItemState::SET == rSet.GetItemState( ATTR_OPTIONS_MISC, - false, (const SfxPoolItem**) &pMiscItem )) + false, reinterpret_cast<const SfxPoolItem**>(&pMiscItem) )) { pMiscItem->SetOptions( pOptions ); bMiscOptions = true; @@ -622,7 +622,7 @@ void SdModule::ApplyItemSet( sal_uInt16 nSlot, const SfxItemSet& rSet ) // Snap const SdOptionsSnapItem* pSnapItem = NULL; if( SfxItemState::SET == rSet.GetItemState( ATTR_OPTIONS_SNAP, - false, (const SfxPoolItem**) &pSnapItem )) + false, reinterpret_cast<const SfxPoolItem**>(&pSnapItem) )) { pSnapItem->SetOptions( pOptions ); } @@ -636,7 +636,7 @@ void SdModule::ApplyItemSet( sal_uInt16 nSlot, const SfxItemSet& rSet ) // Print const SdOptionsPrintItem* pPrintItem = NULL; if( SfxItemState::SET == rSet.GetItemState( ATTR_OPTIONS_PRINT, - false, (const SfxPoolItem**) &pPrintItem )) + false, reinterpret_cast<const SfxPoolItem**>(&pPrintItem) )) { pPrintItem->SetOptions( pOptions ); diff --git a/sd/source/ui/dlg/dlgolbul.cxx b/sd/source/ui/dlg/dlgolbul.cxx index 0eecf6a5fd35..4dd28b99a41b 100644 --- a/sd/source/ui/dlg/dlgolbul.cxx +++ b/sd/source/ui/dlg/dlgolbul.cxx @@ -98,7 +98,7 @@ OutlineBulletDlg::OutlineBulletDlg( OUString aStyleName(SD_RESSTR(STR_LAYOUT_OUTLINE) + " 1"); SfxStyleSheetBase* pFirstStyleSheet = pSSPool->Find( aStyleName, SD_STYLE_FAMILY_PSEUDO); if( pFirstStyleSheet ) - pFirstStyleSheet->GetItemSet().GetItemState(EE_PARA_NUMBULLET, false, (const SfxPoolItem**)&pItem); + pFirstStyleSheet->GetItemSet().GetItemState(EE_PARA_NUMBULLET, false, reinterpret_cast<const SfxPoolItem**>(&pItem)); } if( pItem == NULL ) diff --git a/sd/source/ui/dlg/docprev.cxx b/sd/source/ui/dlg/docprev.cxx index f8217ebd2125..e3f9a2a394c5 100644 --- a/sd/source/ui/dlg/docprev.cxx +++ b/sd/source/ui/dlg/docprev.cxx @@ -154,7 +154,7 @@ void SdDocPreviewWin::Paint( const Rectangle& rRect ) ? ::sd::ViewShell::OUTPUT_DRAWMODE_CONTRAST : ::sd::ViewShell::OUTPUT_DRAWMODE_COLOR ); - ImpPaint( pMetaFile, (VirtualDevice*)this ); + ImpPaint( pMetaFile, this ); } else { diff --git a/sd/source/ui/dlg/prltempl.cxx b/sd/source/ui/dlg/prltempl.cxx index 171b82a24fc8..e2330f9f6b2f 100644 --- a/sd/source/ui/dlg/prltempl.cxx +++ b/sd/source/ui/dlg/prltempl.cxx @@ -287,7 +287,7 @@ const SfxItemSet* SdPresLayoutTemplateDlg::GetOutputItemSet() const pOutSet->Put( *SfxTabDialog::GetOutputItemSet() ); const SvxNumBulletItem *pSvxNumBulletItem = NULL; - if( SfxItemState::SET == pOutSet->GetItemState(EE_PARA_NUMBULLET, false, (const SfxPoolItem**)&pSvxNumBulletItem )) + if( SfxItemState::SET == pOutSet->GetItemState(EE_PARA_NUMBULLET, false, reinterpret_cast<const SfxPoolItem**>(&pSvxNumBulletItem) )) SdBulletMapper::MapFontsInNumRule( *pSvxNumBulletItem->GetNumRule(), *pOutSet ); return pOutSet; } diff --git a/sd/source/ui/dlg/prntopts.cxx b/sd/source/ui/dlg/prntopts.cxx index 1be0be54e5f6..943144be7a53 100644 --- a/sd/source/ui/dlg/prntopts.cxx +++ b/sd/source/ui/dlg/prntopts.cxx @@ -131,7 +131,7 @@ void SdPrintOptions::Reset( const SfxItemSet* rAttrs ) { const SdOptionsPrintItem* pPrintOpts = NULL; if( SfxItemState::SET == rAttrs->GetItemState( ATTR_OPTIONS_PRINT, false, - (const SfxPoolItem**) &pPrintOpts ) ) + reinterpret_cast<const SfxPoolItem**>(&pPrintOpts) ) ) { m_pCbxDraw->Check( pPrintOpts->GetOptionsPrint().IsDraw() ); m_pCbxNotes->Check( pPrintOpts->GetOptionsPrint().IsNotes() ); diff --git a/sd/source/ui/dlg/sdabstdlg.cxx b/sd/source/ui/dlg/sdabstdlg.cxx index acf4705329b9..1f64f291fc2e 100644 --- a/sd/source/ui/dlg/sdabstdlg.cxx +++ b/sd/source/ui/dlg/sdabstdlg.cxx @@ -44,8 +44,8 @@ SdAbstractDialogFactory* SdAbstractDialogFactory::Create() static ::osl::Module aDialogLibrary; static const OUString sLibName(SDUI_DLL_NAME); if ( aDialogLibrary.is() || aDialogLibrary.loadRelative( &thisModule, sLibName ) ) - fp = ( SdAbstractDialogFactory* (SAL_CALL*)() ) - aDialogLibrary.getFunctionSymbol( "SdCreateDialogFactory" ); + fp = reinterpret_cast<SdAbstractDialogFactory* (SAL_CALL*)()>( + aDialogLibrary.getFunctionSymbol( "SdCreateDialogFactory" )); #else fp = SdCreateDialogFactory(); #endif diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx index bcea730bf198..e1442cd4fefe 100644 --- a/sd/source/ui/dlg/sdtreelb.cxx +++ b/sd/source/ui/dlg/sdtreelb.cxx @@ -602,7 +602,7 @@ void SdPageObjsTLB::AddShapeList ( SdNavigatorWin* pSdNavigatorWin=NULL; sd::DrawDocShell* pSdDrawDocShell = NULL; if(pEntry) - pWindow=(vcl::Window*)GetParent(pEntry); + pWindow=reinterpret_cast<vcl::Window*>(GetParent(pEntry)); if(pWindow) pSdNavigatorWin = static_cast<SdNavigatorWin*>(pWindow); if( pSdNavigatorWin ) @@ -645,7 +645,7 @@ void SdPageObjsTLB::AddShapeList ( SdNavigatorWin* pSdNavigatorWin=NULL; sd::DrawDocShell* pSdDrawDocShell = NULL; if(pNewEntry) - pWindow=(vcl::Window*)GetParent(pNewEntry); + pWindow=reinterpret_cast<vcl::Window*>(GetParent(pNewEntry)); if(pWindow) pSdNavigatorWin = static_cast<SdNavigatorWin*>(pWindow); if( pSdNavigatorWin ) @@ -679,7 +679,7 @@ void SdPageObjsTLB::AddShapeList ( SdNavigatorWin* pSdNavigatorWin=NULL; sd::DrawDocShell* pSdDrawDocShell = NULL; if(pNewEntry) - pWindow=(vcl::Window*)GetParent(pNewEntry); + pWindow=reinterpret_cast<vcl::Window*>(GetParent(pNewEntry)); if(pWindow) pSdNavigatorWin = static_cast<SdNavigatorWin*>(pWindow); if( pSdNavigatorWin ) @@ -728,7 +728,7 @@ void SdPageObjsTLB::AddShapeList ( SdNavigatorWin* pSdNavigatorWin=NULL; sd::DrawDocShell* pSdDrawDocShell = NULL; if(pNewEntry) - pWindow=(vcl::Window*)GetParent(pNewEntry); + pWindow=reinterpret_cast<vcl::Window*>(GetParent(pNewEntry)); if(pWindow) pSdNavigatorWin = static_cast<SdNavigatorWin*>(pWindow); if( pSdNavigatorWin ) @@ -1094,7 +1094,7 @@ void SdPageObjsTLB::KeyInput( const KeyEvent& rKEvt ) if (!pParentEntry) return; OUString aStr(GetSelectEntry()); - SdNavigatorWin* pSdNavigatorWin = (SdNavigatorWin*)pParentEntry; + SdNavigatorWin* pSdNavigatorWin = reinterpret_cast<SdNavigatorWin*>(pParentEntry); sd::DrawDocShell* pSdDrawDocShell = pSdNavigatorWin->GetDrawDocShell(mpDoc); if (pSdDrawDocShell) { @@ -1200,7 +1200,7 @@ void SdPageObjsTLB::DoDrag() aDDInfo.pSource = this; // aDDInfo.pDDStartEntry = pEntry; ::com::sun::star::uno::Sequence<sal_Int8> aSequence (sizeof(SvLBoxDDInfo)); - memcpy(aSequence.getArray(), (sal_Char*)&aDDInfo, sizeof(SvLBoxDDInfo)); + memcpy(aSequence.getArray(), &aDDInfo, sizeof(SvLBoxDDInfo)); ::com::sun::star::uno::Any aTreeListBoxData (aSequence); // object is destroyed by internal reference mechanism diff --git a/sd/source/ui/docshell/docshel4.cxx b/sd/source/ui/docshell/docshel4.cxx index deec364c574b..6f3fcbb43e2b 100644 --- a/sd/source/ui/docshell/docshel4.cxx +++ b/sd/source/ui/docshell/docshel4.cxx @@ -1061,8 +1061,8 @@ bool DrawDocShell::SaveAsOwnFormat( SfxMedium& rMedium ) OUString aLayoutName; - SfxStringItem* pLayoutItem; - if( rMedium.GetItemSet()->GetItemState(SID_TEMPLATE_NAME, false, (const SfxPoolItem**) & pLayoutItem ) == SfxItemState::SET ) + SfxStringItem const * pLayoutItem; + if( rMedium.GetItemSet()->GetItemState(SID_TEMPLATE_NAME, false, reinterpret_cast<const SfxPoolItem**>(& pLayoutItem) ) == SfxItemState::SET ) { aLayoutName = pLayoutItem->GetValue(); } diff --git a/sd/source/ui/func/fuolbull.cxx b/sd/source/ui/func/fuolbull.cxx index 9888738c46ba..55acf20100a1 100644 --- a/sd/source/ui/func/fuolbull.cxx +++ b/sd/source/ui/func/fuolbull.cxx @@ -349,7 +349,7 @@ const SfxPoolItem* FuOutlineBullet::GetNumBulletItem(SfxItemSet& aNewAttr, sal_u OUString aStyleName(SD_RESSTR(STR_LAYOUT_OUTLINE) + " 1"); SfxStyleSheetBase* pFirstStyleSheet = pSSPool->Find( aStyleName, SD_STYLE_FAMILY_PSEUDO); if( pFirstStyleSheet ) - pFirstStyleSheet->GetItemSet().GetItemState(EE_PARA_NUMBULLET, false, (const SfxPoolItem**)&pItem); + pFirstStyleSheet->GetItemSet().GetItemState(EE_PARA_NUMBULLET, false, reinterpret_cast<const SfxPoolItem**>(&pItem)); } if( pItem == NULL ) diff --git a/sd/source/ui/remotecontrol/BluetoothServer.cxx b/sd/source/ui/remotecontrol/BluetoothServer.cxx index e04392dcddf7..93180f21c42c 100644 --- a/sd/source/ui/remotecontrol/BluetoothServer.cxx +++ b/sd/source/ui/remotecontrol/BluetoothServer.cxx @@ -395,7 +395,7 @@ bluezCreateAttachListeningSocket( GMainContext *pContext, GPollFD *pSocketFD ) aAddr.rc_channel = 5; int a; - if ( ( a = bind( nSocket, (sockaddr*) &aAddr, sizeof(aAddr) ) ) < 0 ) { + if ( ( a = bind( nSocket, reinterpret_cast<sockaddr*>(&aAddr), sizeof(aAddr) ) ) < 0 ) { SAL_WARN( "sdremote.bluetooth", "bind failed with error" << a ); close( nSocket ); return; @@ -1297,7 +1297,7 @@ void SAL_CALL BluetoothServer::run() int nClient; SAL_INFO( "sdremote.bluetooth", "performing accept" ); - if ( ( nClient = accept( aSocketFD.fd, (sockaddr*) &aRemoteAddr, &aRemoteAddrLen)) < 0 && + if ( ( nClient = accept( aSocketFD.fd, reinterpret_cast<sockaddr*>(&aRemoteAddr), &aRemoteAddrLen)) < 0 && errno != EAGAIN ) { SAL_WARN( "sdremote.bluetooth", "accept failed with errno " << errno ); diff --git a/sd/source/ui/remotecontrol/DiscoveryService.cxx b/sd/source/ui/remotecontrol/DiscoveryService.cxx index 9b6bfbfbedf0..04ef5e7282b7 100644 --- a/sd/source/ui/remotecontrol/DiscoveryService.cxx +++ b/sd/source/ui/remotecontrol/DiscoveryService.cxx @@ -112,7 +112,7 @@ void DiscoveryService::setupSockets() aAddr.sin_addr.s_addr = htonl(INADDR_ANY); aAddr.sin_port = htons( PORT_DISCOVERY ); - int rc = bind( mSocket, (sockaddr*) &aAddr, sizeof(sockaddr_in) ); + int rc = bind( mSocket, reinterpret_cast<sockaddr*>(&aAddr), sizeof(sockaddr_in) ); if (rc) { @@ -151,7 +151,7 @@ void SAL_CALL DiscoveryService::run() memset( aBuffer, 0, sizeof(char) * BUFFER_SIZE ); sockaddr_in aAddr; socklen_t aLen = sizeof( aAddr ); - if(recvfrom( mSocket, aBuffer, BUFFER_SIZE, 0, (sockaddr*) &aAddr, &aLen ) > 0) + if(recvfrom( mSocket, aBuffer, BUFFER_SIZE, 0, reinterpret_cast<sockaddr*>(&aAddr), &aLen ) > 0) { OString aString( aBuffer, strlen( "LOREMOTE_SEARCH" ) ); if ( aString == "LOREMOTE_SEARCH" ) @@ -161,7 +161,7 @@ void SAL_CALL DiscoveryService::run() osl::SocketAddr::getLocalHostname(), RTL_TEXTENCODING_UTF8 ) ) .append( "\n\n" ); if ( sendto( mSocket, aStringBuffer.getStr(), - aStringBuffer.getLength(), 0, (sockaddr*) &aAddr, + aStringBuffer.getLength(), 0, reinterpret_cast<sockaddr*>(&aAddr), sizeof(aAddr) ) <= 0 ) { // Write error or closed socket -- we are done. diff --git a/sd/source/ui/unoidl/UnoDocumentSettings.cxx b/sd/source/ui/unoidl/UnoDocumentSettings.cxx index b193dd6fa2a8..6264d10b11c8 100644 --- a/sd/source/ui/unoidl/UnoDocumentSettings.cxx +++ b/sd/source/ui/unoidl/UnoDocumentSettings.cxx @@ -417,8 +417,8 @@ throw (UnknownPropertyException, PropertyVetoException, SfxPrinter* pPrinter = pDocSh->GetPrinter( false ); if( pPrinter ) { - SdOptionsPrintItem* pPrinterOptions = NULL; - if(pPrinter->GetOptions().GetItemState( ATTR_OPTIONS_PRINT, false, (const SfxPoolItem**) &pPrinterOptions) == SfxItemState::SET) + SdOptionsPrintItem const * pPrinterOptions = NULL; + if(pPrinter->GetOptions().GetItemState( ATTR_OPTIONS_PRINT, false, reinterpret_cast<const SfxPoolItem**>(&pPrinterOptions)) == SfxItemState::SET) aOptionsPrintItem.GetOptionsPrint() = pPrinterOptions->GetOptionsPrint(); } else @@ -997,8 +997,8 @@ throw (UnknownPropertyException, WrappedTargetException, RuntimeException, std:: SfxPrinter* pPrinter = pDocSh->GetPrinter( false ); if( pPrinter ) { - SdOptionsPrintItem* pPrinterOptions = NULL; - if(pPrinter->GetOptions().GetItemState( ATTR_OPTIONS_PRINT, false, (const SfxPoolItem**) &pPrinterOptions) == SfxItemState::SET) + SdOptionsPrintItem const * pPrinterOptions = NULL; + if(pPrinter->GetOptions().GetItemState( ATTR_OPTIONS_PRINT, false, reinterpret_cast<const SfxPoolItem**>(&pPrinterOptions)) == SfxItemState::SET) aOptionsPrintItem.GetOptionsPrint() = pPrinterOptions->GetOptionsPrint(); } else diff --git a/sd/source/ui/unoidl/unosrch.cxx b/sd/source/ui/unoidl/unosrch.cxx index 90d466a94a53..082d6369734d 100644 --- a/sd/source/ui/unoidl/unosrch.cxx +++ b/sd/source/ui/unoidl/unosrch.cxx @@ -580,7 +580,7 @@ uno::Reference< text::XTextRange > SdUnoSearchReplaceShape::Search( uno::Refere } } - uno::Reference< text::XText > xFound; + uno::Reference< text::XTextRange > xFound; ESelection aSel; uno::Reference< text::XTextRange > xRangeRef( xText, uno::UNO_QUERY ); @@ -608,7 +608,7 @@ uno::Reference< text::XTextRange > SdUnoSearchReplaceShape::Search( uno::Refere if(pParent) { pRange = new SvxUnoTextRange( *pParent ); - xFound = (text::XText*)pRange; + xFound = pRange; pRange->SetSelection(aSelection); } @@ -622,7 +622,7 @@ uno::Reference< text::XTextRange > SdUnoSearchReplaceShape::Search( uno::Refere delete[] pConvertPos; delete[] pConvertPara; - return uno::Reference< text::XTextRange > ( xFound, uno::UNO_QUERY ); + return xFound; } bool SdUnoSearchReplaceShape::Search( const OUString& rText, sal_Int32& nStartPos, sal_Int32& nEndPos, SdUnoSearchReplaceDescriptor* pDescr ) throw() diff --git a/sd/source/ui/view/drtxtob1.cxx b/sd/source/ui/view/drtxtob1.cxx index c38924b1d378..a3e850cd82e5 100644 --- a/sd/source/ui/view/drtxtob1.cxx +++ b/sd/source/ui/view/drtxtob1.cxx @@ -349,7 +349,7 @@ void TextObjectBar::Execute( SfxRequest &rReq ) OUString sStyleName(SD_RESSTR(STR_PSEUDOSHEET_OUTLINE) + " 1"); SfxStyleSheetBase* pFirstStyleSheet = pSSPool->Find(sStyleName, SD_STYLE_FAMILY_PSEUDO); if( pFirstStyleSheet ) - pFirstStyleSheet->GetItemSet().GetItemState(EE_PARA_NUMBULLET, false, (const SfxPoolItem**)&pItem); + pFirstStyleSheet->GetItemSet().GetItemState(EE_PARA_NUMBULLET, false, reinterpret_cast<const SfxPoolItem**>(&pItem)); if (pItem ) { diff --git a/sd/source/ui/view/viewshel.cxx b/sd/source/ui/view/viewshel.cxx index 736de7679af5..990173702da9 100644 --- a/sd/source/ui/view/viewshel.cxx +++ b/sd/source/ui/view/viewshel.cxx @@ -766,7 +766,7 @@ const SfxPoolItem* ViewShell::GetNumBulletItem(SfxItemSet& aNewAttr, sal_uInt16& OUString aStyleName(SD_RESSTR(STR_LAYOUT_OUTLINE) + " 1"); SfxStyleSheetBase* pFirstStyleSheet = pSSPool->Find( aStyleName, SD_STYLE_FAMILY_PSEUDO); if( pFirstStyleSheet ) - pFirstStyleSheet->GetItemSet().GetItemState(EE_PARA_NUMBULLET, false, (const SfxPoolItem**)&pItem); + pFirstStyleSheet->GetItemSet().GetItemState(EE_PARA_NUMBULLET, false, reinterpret_cast<const SfxPoolItem**>(&pItem)); } if( pItem == NULL ) |