[Libreoffice-commits] core.git: editeng/source
Stephan Bergmann
sbergman at redhat.com
Wed Jan 31 12:38:11 UTC 2018
editeng/source/uno/unonrule.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 3341c752024687e96b7aad2d19e04d65ee7e232e
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Jan 31 08:43:27 2018 +0100
SvxNumberFormat::SetAbsLSpace takes short
...so there appears to be no good reason to cast from sal_Int32 to sal_uInt16 first
Change-Id: I67384bc736685269acb6c2033b2c4edffd27a510
Reviewed-on: https://gerrit.libreoffice.org/48953
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/editeng/source/uno/unonrule.cxx b/editeng/source/uno/unonrule.cxx
index 0860a8cd4de2..d7364ad35619 100644
--- a/editeng/source/uno/unonrule.cxx
+++ b/editeng/source/uno/unonrule.cxx
@@ -397,7 +397,7 @@ void SvxUnoNumberingRules::setNumberingRuleByIndex(const Sequence<beans::Propert
sal_Int32 nMargin = 0;
if( aVal >>= nMargin )
{
- aFmt.SetAbsLSpace(static_cast<sal_uInt16>(nMargin));
+ aFmt.SetAbsLSpace(nMargin);
continue;
}
}
More information about the Libreoffice-commits
mailing list