summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/drviews3.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-25 19:10:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-26 11:01:43 +0200
commitb59b4a38b45e1bf158701355c8c70f1c59f3e112 (patch)
treee40ff4daa9acec5031a28453ad8686bd6267b024 /sd/source/ui/view/drviews3.cxx
parent742f030d67f3d4179d3d0153cc16be35095eb580 (diff)
loplugin:oncevar in sd
Change-Id: I56649b4df8c517f152ed4e9132985bbef22f8634 Reviewed-on: https://gerrit.libreoffice.org/39241 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/view/drviews3.cxx')
-rw-r--r--sd/source/ui/view/drviews3.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/sd/source/ui/view/drviews3.cxx b/sd/source/ui/view/drviews3.cxx
index 8fd9640f62fe..2005b4770eb5 100644
--- a/sd/source/ui/view/drviews3.cxx
+++ b/sd/source/ui/view/drviews3.cxx
@@ -668,9 +668,8 @@ void DrawViewShell::ExecRuler(SfxRequest& rReq)
case SID_ATTR_PARA_LINESPACE:
if (pArgs)
{
- sal_uInt16 nSlot = SID_ATTR_PARA_LINESPACE;
SvxLineSpacingItem aParaLineSP = static_cast<const SvxLineSpacingItem&>(pArgs->Get(
- GetPool().GetWhich(nSlot)));
+ GetPool().GetWhich(SID_ATTR_PARA_LINESPACE)));
SfxItemSet aEditAttr( GetPool(), svl::Items<EE_PARA_SBL, EE_PARA_SBL>{} );
aParaLineSP.SetWhich( EE_PARA_SBL );
@@ -728,9 +727,8 @@ void DrawViewShell::ExecRuler(SfxRequest& rReq)
case SID_ATTR_PARA_ULSPACE:
if (pArgs)
{
- sal_uInt16 nSlot = SID_ATTR_PARA_ULSPACE;
SvxULSpaceItem aULSP = static_cast<const SvxULSpaceItem&>(pArgs->Get(
- GetPool().GetWhich(nSlot)));
+ GetPool().GetWhich(SID_ATTR_PARA_ULSPACE)));
SfxItemSet aEditAttr( GetPool(), svl::Items<EE_PARA_ULSPACE, EE_PARA_ULSPACE>{} );
aULSP.SetWhich( EE_PARA_ULSPACE );
@@ -743,9 +741,8 @@ void DrawViewShell::ExecRuler(SfxRequest& rReq)
case SID_ATTR_PARA_LRSPACE:
if (pArgs)
{
- sal_uInt16 nSlot = SID_ATTR_PARA_LRSPACE;
SvxLRSpaceItem aLRSpace = static_cast<const SvxLRSpaceItem&>(pArgs->Get(
- GetPool().GetWhich(nSlot)));
+ GetPool().GetWhich(SID_ATTR_PARA_LRSPACE)));
SfxItemSet aEditAttr( GetPool(), svl::Items<EE_PARA_LRSPACE, EE_PARA_LRSPACE>{} );
aLRSpace.SetWhich( EE_PARA_LRSPACE );
@@ -907,10 +904,9 @@ void DrawViewShell::GetRulerState(SfxItemSet& rSet)
rSet.Put( rItem );
const SvxLRSpaceItem& rLRSpaceItem = static_cast<const SvxLRSpaceItem&>( aEditAttr.Get( EE_PARA_LRSPACE ) );
- sal_uInt16 nId = SID_ATTR_PARA_LRSPACE;
SvxLRSpaceItem aLRSpaceItem( rLRSpaceItem.GetLeft(),
rLRSpaceItem.GetRight(), rLRSpaceItem.GetTextLeft(),
- rLRSpaceItem.GetTextFirstLineOfst(), nId );
+ rLRSpaceItem.GetTextFirstLineOfst(), SID_ATTR_PARA_LRSPACE );
const sal_Int16 nOutlineLevel = static_cast<const SfxInt16Item&>( aEditAttr.Get( EE_PARA_OUTLLEVEL )).GetValue();
const SvxNumBulletItem& rNumBulletItem = static_cast<const SvxNumBulletItem&>( aEditAttr.Get( EE_PARA_NUMBULLET ) );