summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-06-28 14:14:40 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-06-28 14:15:03 +0200
commit9db510edb40bfbdf708487ba7d306dcd44f49716 (patch)
treeda09858121de8116f04bf54d585a72bd4ee80b2f /svx
parentb6bd337595383b9b9f0524ec4190dc3e1fbbf6e1 (diff)
loplugin:redundantcast
Change-Id: I5187982cdc317f49139fd9392ce7ff95a5a3b483
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sidebar/paragraph/ParaPropertyPanel.cxx4
-rw-r--r--svx/source/sidebar/paragraph/ParaSpacingWindow.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx
index ad628129c040..7f83015f4a0e 100644
--- a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx
+++ b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx
@@ -173,8 +173,8 @@ void ParaPropertyPanel::initial()
IMPL_LINK_NOARG( ParaPropertyPanel, ModifyIndentHdl_Impl, Edit&, void)
{
SvxLRSpaceItem aMargin( SID_ATTR_PARA_LRSPACE );
- aMargin.SetTextLeft( (long)GetCoreValue( *mpLeftIndent, m_eLRSpaceUnit ) );
- aMargin.SetRight( (long)GetCoreValue( *mpRightIndent, m_eLRSpaceUnit ) );
+ aMargin.SetTextLeft( GetCoreValue( *mpLeftIndent, m_eLRSpaceUnit ) );
+ aMargin.SetRight( GetCoreValue( *mpRightIndent, m_eLRSpaceUnit ) );
aMargin.SetTextFirstLineOfst( (short)GetCoreValue( *mpFLineIndent, m_eLRSpaceUnit ) );
GetBindings()->GetDispatcher()->ExecuteList(
diff --git a/svx/source/sidebar/paragraph/ParaSpacingWindow.cxx b/svx/source/sidebar/paragraph/ParaSpacingWindow.cxx
index 27873db96cd3..e7fa12525c32 100644
--- a/svx/source/sidebar/paragraph/ParaSpacingWindow.cxx
+++ b/svx/source/sidebar/paragraph/ParaSpacingWindow.cxx
@@ -284,8 +284,8 @@ IMPL_LINK_NOARG(ParaLRSpacingWindow, ModifySpacingHdl, Edit&, void)
if(pDisp)
{
SvxLRSpaceItem aMargin(SID_ATTR_PARA_LRSPACE);
- aMargin.SetTextLeft((long)GetCoreValue(*m_pBeforeSpacing, m_eUnit));
- aMargin.SetRight((long)GetCoreValue(*m_pAfterSpacing, m_eUnit));
+ aMargin.SetTextLeft(GetCoreValue(*m_pBeforeSpacing, m_eUnit));
+ aMargin.SetRight(GetCoreValue(*m_pAfterSpacing, m_eUnit));
aMargin.SetTextFirstLineOfst((short)GetCoreValue(*m_pFLSpacing, m_eUnit));
pDisp->ExecuteList(SID_ATTR_PARA_LRSPACE, SfxCallMode::RECORD, {&aMargin});