diff options
-rw-r--r-- | sd/source/core/stlsheet.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/unoidl/SdUnoDrawView.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/core/stlsheet.cxx b/sd/source/core/stlsheet.cxx index a3b018cddec7..4774edd3b4ee 100644 --- a/sd/source/core/stlsheet.cxx +++ b/sd/source/core/stlsheet.cxx @@ -132,7 +132,7 @@ SdStyleSheet::SdStyleSheet(const OUString& rDisplayName, SfxStyleSheetBasePool& : SdStyleSheetBase( OUString( rDisplayName ), _rPool, eFamily, _nMask) , ::cppu::BaseMutex() , msApiName( rDisplayName ) -, mxPool( const_cast< SfxStyleSheetBasePool* >(&_rPool) ) +, mxPool( &_rPool ) , mrBHelper( m_aMutex ) { } diff --git a/sd/source/ui/unoidl/SdUnoDrawView.cxx b/sd/source/ui/unoidl/SdUnoDrawView.cxx index 88b478774ad9..486c86f4df8e 100644 --- a/sd/source/ui/unoidl/SdUnoDrawView.cxx +++ b/sd/source/ui/unoidl/SdUnoDrawView.cxx @@ -385,7 +385,7 @@ Any SAL_CALL SdUnoDrawView::getFastPropertyValue ( switch( nHandle ) { case DrawController::PROPERTY_CURRENTPAGE: - aValue <<= (const_cast<SdUnoDrawView*>(this))->getCurrentPage(); + aValue <<= getCurrentPage(); break; case DrawController::PROPERTY_MASTERPAGEMODE: @@ -397,7 +397,7 @@ Any SAL_CALL SdUnoDrawView::getFastPropertyValue ( break; case DrawController::PROPERTY_ACTIVE_LAYER: - aValue <<= (const_cast<SdUnoDrawView*>(this))->getActiveLayer(); + aValue <<= getActiveLayer(); break; case DrawController::PROPERTY_ZOOMVALUE: |