From c1599fc5c9800086548595d1f1464619a7024d06 Mon Sep 17 00:00:00 2001 From: ayhanyalcinsoy Date: Fri, 27 Dec 2019 15:23:57 +0300 Subject: tdf#96505:Get rid of cargo cult long integer literals Change-Id: I6ee1f79d4b96c4ed161eff11c1b75574d89902dd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85843 Tested-by: Jenkins Reviewed-by: Michael Stahl --- editeng/source/editeng/impedit2.cxx | 2 +- editeng/source/rtf/rtfitem.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'editeng') diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index cd7ddad07c3e..2ee7d52496af 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -3659,7 +3659,7 @@ Range ImpEditEngine::GetInvalidYOffsets( ParaPortion* pPortion ) && nPropLineSpace && ( nPropLineSpace < 100 ) ) { const EditLine& rL = pPortion->GetLines()[nFirstInvalid]; - long n = rL.GetTxtHeight() * ( 100L - nPropLineSpace ); + long n = rL.GetTxtHeight() * ( 100 - nPropLineSpace ); n /= 100; aRange.Min() -= n; aRange.Max() += n; diff --git a/editeng/source/rtf/rtfitem.cxx b/editeng/source/rtf/rtfitem.cxx index 297469d85a58..2ada3d2a6289 100644 --- a/editeng/source/rtf/rtfitem.cxx +++ b/editeng/source/rtf/rtfitem.cxx @@ -417,7 +417,7 @@ void SvxRTFParser::ReadAttr( int nToken, SfxItemSet* pSet ) if( IsCalcValue() ) CalcValue(); - nTokenValue = short( 100L * aLSpace.GetLineHeight() / nTokenValue ); + nTokenValue = short( 100 * aLSpace.GetLineHeight() / nTokenValue ); aLSpace.SetPropLineSpace( static_cast(nTokenValue) ); aLSpace.SetLineSpaceRule( SvxLineSpaceRule::Auto ); -- cgit