[Libreoffice-commits] core.git: svx/source

Stephan Bergmann sbergman at redhat.com
Wed Jun 28 12:15:27 UTC 2017


 svx/source/sidebar/paragraph/ParaPropertyPanel.cxx |    4 ++--
 svx/source/sidebar/paragraph/ParaSpacingWindow.cxx |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 9db510edb40bfbdf708487ba7d306dcd44f49716
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Jun 28 14:14:40 2017 +0200

    loplugin:redundantcast
    
    Change-Id: I5187982cdc317f49139fd9392ce7ff95a5a3b483

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});


More information about the Libreoffice-commits mailing list