diff options
author | ayhanyalcinsoy <ayhanyalcinsoy@pisilinux.org> | 2019-12-27 15:23:57 +0300 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2020-01-08 17:47:54 +0100 |
commit | c1599fc5c9800086548595d1f1464619a7024d06 (patch) | |
tree | bc73d11d1a8791d848f692234752c66205b09152 /editeng | |
parent | a86a2a1c1ceb7203857d4317913c5b1bb9feb4aa (diff) |
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 <michael.stahl@cib.de>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit2.cxx | 2 | ||||
-rw-r--r-- | editeng/source/rtf/rtfitem.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
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<sal_uInt16>(nTokenValue) ); aLSpace.SetLineSpaceRule( SvxLineSpaceRule::Auto ); |