summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/outlnvs2.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-30 09:37:00 +0200
committerNoel Grandin <noel@peralex.com>2014-11-10 15:22:17 +0200
commit526917bbd06e290bb6669e2e52730a5941570b34 (patch)
treee663048111c00fb0738550d3cdbeff5e573b91e2 /sd/source/ui/view/outlnvs2.cxx
parent36057c3a11deb3a7c3748d7aafd5e6dd08b58984 (diff)
loplugin: cstylecast
Change-Id: I9d3f642239bc5c7a52611b9c27fd0291940c7483
Diffstat (limited to 'sd/source/ui/view/outlnvs2.cxx')
-rw-r--r--sd/source/ui/view/outlnvs2.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/view/outlnvs2.cxx b/sd/source/ui/view/outlnvs2.cxx
index 0c8f960749c1..bbe02cfaa362 100644
--- a/sd/source/ui/view/outlnvs2.cxx
+++ b/sd/source/ui/view/outlnvs2.cxx
@@ -92,12 +92,12 @@ void OutlineViewShell::FuTemporary(SfxRequest &rReq)
if ( pArgs )
{
- SvxZoomType eZT = ( ( const SvxZoomItem& ) pArgs->
+ SvxZoomType eZT = static_cast<const SvxZoomItem&>( pArgs->
Get( SID_ATTR_ZOOM ) ).GetType();
switch( eZT )
{
case SVX_ZOOM_PERCENT:
- SetZoom( (long) ( ( const SvxZoomItem& ) pArgs->
+ SetZoom( (long) static_cast<const SvxZoomItem&>( pArgs->
Get( SID_ATTR_ZOOM ) ).GetValue() );
Invalidate( SID_ATTR_ZOOM );
Invalidate( SID_ATTR_ZOOMSLIDER );
@@ -375,8 +375,8 @@ void OutlineViewShell::FuTemporaryModify(SfxRequest &rReq)
if (pReqArgs)
{
- SvxHyperlinkItem* pHLItem =
- (SvxHyperlinkItem*) &pReqArgs->Get(SID_HYPERLINK_SETLINK);
+ const SvxHyperlinkItem* pHLItem =
+ static_cast<const SvxHyperlinkItem*>( &pReqArgs->Get(SID_HYPERLINK_SETLINK) );
SvxFieldItem aURLItem(SvxURLField(pHLItem->GetURL(),
pHLItem->GetName(),