summaryrefslogtreecommitdiff
path: root/svx/source/sidebar
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-11-30 07:17:53 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-11-30 19:29:21 +0100
commitb15f79a8f8de27c9d186ae1fbd0c86f194aed0ac (patch)
tree3c4dc647e8ccf78c41f66e4993f3a0490c15a137 /svx/source/sidebar
parent32efde5cef2b8516a9decd0bf7091d7def1da971 (diff)
loplugin:unnecessaryparen: signed numeric literals
Change-Id: I75c8224452ca9c3711a2ccaca9ecf549fa59cb64 Reviewed-on: https://gerrit.libreoffice.org/45549 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svx/source/sidebar')
-rw-r--r--svx/source/sidebar/paragraph/ParaPropertyPanel.cxx2
-rw-r--r--svx/source/sidebar/paragraph/ParaSpacingWindow.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx
index 4b7fbf56c016..3fceef172b1e 100644
--- a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx
+++ b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx
@@ -276,7 +276,7 @@ void ParaPropertyPanel::StateChangedIndentImpl( SfxItemState eState, const SfxPo
&& maContext.GetCombinedContext_DI() != CombinedEnumContext(Application::WriterVariants, Context::Default)
&& maContext.GetCombinedContext_DI() != CombinedEnumContext(Application::WriterVariants, Context::Table))
{
- mpFLineIndent->SetMin( nVal*(-1), FUNIT_100TH_MM );
+ mpFLineIndent->SetMin( nVal*-1, FUNIT_100TH_MM );
}
long nrVal = OutputDevice::LogicToLogic( aTxtRight, MapUnit::MapTwip, MapUnit::Map100thMM );
diff --git a/svx/source/sidebar/paragraph/ParaSpacingWindow.cxx b/svx/source/sidebar/paragraph/ParaSpacingWindow.cxx
index f854752163a5..4d3f2b147d17 100644
--- a/svx/source/sidebar/paragraph/ParaSpacingWindow.cxx
+++ b/svx/source/sidebar/paragraph/ParaSpacingWindow.cxx
@@ -217,7 +217,7 @@ void ParaLRSpacingWindow::SetValue(SfxItemState eState, const SfxPoolItem* pStat
&& m_aContext.GetCombinedContext_DI() != CombinedEnumContext(Application::WriterVariants, Context::Default)
&& m_aContext.GetCombinedContext_DI() != CombinedEnumContext(Application::WriterVariants, Context::Table))
{
- m_pFLSpacing->SetMin(aTxtLeft*(-1), FUNIT_100TH_MM);
+ m_pFLSpacing->SetMin(aTxtLeft*-1, FUNIT_100TH_MM);
}
aTxtRight = (long)m_pAfterSpacing->Normalize(aTxtRight);