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

loplugin:redundantcast: const_cast to same type

Change-Id: I3da21ec39ea4802e2f95943dee4e02e1490a513f
üst 88215090
...@@ -132,7 +132,7 @@ SdStyleSheet::SdStyleSheet(const OUString& rDisplayName, SfxStyleSheetBasePool& ...@@ -132,7 +132,7 @@ SdStyleSheet::SdStyleSheet(const OUString& rDisplayName, SfxStyleSheetBasePool&
: SdStyleSheetBase( OUString( rDisplayName ), _rPool, eFamily, _nMask) : SdStyleSheetBase( OUString( rDisplayName ), _rPool, eFamily, _nMask)
, ::cppu::BaseMutex() , ::cppu::BaseMutex()
, msApiName( rDisplayName ) , msApiName( rDisplayName )
, mxPool( const_cast< SfxStyleSheetBasePool* >(&_rPool) ) , mxPool( &_rPool )
, mrBHelper( m_aMutex ) , mrBHelper( m_aMutex )
{ {
} }
......
...@@ -385,7 +385,7 @@ Any SAL_CALL SdUnoDrawView::getFastPropertyValue ( ...@@ -385,7 +385,7 @@ Any SAL_CALL SdUnoDrawView::getFastPropertyValue (
switch( nHandle ) switch( nHandle )
{ {
case DrawController::PROPERTY_CURRENTPAGE: case DrawController::PROPERTY_CURRENTPAGE:
aValue <<= (const_cast<SdUnoDrawView*>(this))->getCurrentPage(); aValue <<= getCurrentPage();
break; break;
case DrawController::PROPERTY_MASTERPAGEMODE: case DrawController::PROPERTY_MASTERPAGEMODE:
...@@ -397,7 +397,7 @@ Any SAL_CALL SdUnoDrawView::getFastPropertyValue ( ...@@ -397,7 +397,7 @@ Any SAL_CALL SdUnoDrawView::getFastPropertyValue (
break; break;
case DrawController::PROPERTY_ACTIVE_LAYER: case DrawController::PROPERTY_ACTIVE_LAYER:
aValue <<= (const_cast<SdUnoDrawView*>(this))->getActiveLayer(); aValue <<= getActiveLayer();
break; break;
case DrawController::PROPERTY_ZOOMVALUE: case DrawController::PROPERTY_ZOOMVALUE:
......
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