summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-29 12:04:41 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-29 12:04:41 +0200
commitc718f637a6db3fc7c1a548bfc7a1d15d83ffdc81 (patch)
treee52b3fa0031bc93b957297ab8fc0f059fba15172 /sd
parent882150905bbb091d90cc3bd3061a80db689446d9 (diff)
loplugin:redundantcast: const_cast to same type
Change-Id: I3da21ec39ea4802e2f95943dee4e02e1490a513f
Diffstat (limited to 'sd')
-rw-r--r--sd/source/core/stlsheet.cxx2
-rw-r--r--sd/source/ui/unoidl/SdUnoDrawView.cxx4
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: