diff options
author | udareechk <udareeck@gmail.com> | 2017-09-21 01:30:46 +0530 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-10-23 16:51:09 +0200 |
commit | 022b1b2a40fcaf8d201081dead44c1d3346d1972 (patch) | |
tree | ceb0671118004125c35c157978080adbd93edcaf /starmath | |
parent | f68c1a0f03b974839b02cbff400f1a2785489c87 (diff) |
tdf#96505 Get rid of cargo cult long integer literals
Removed 0L, 1L and 2L
Change-Id: Icb38de1cdd8e1215a86118b0c8af993025fd790e
Reviewed-on: https://gerrit.libreoffice.org/42567
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/rect.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/starmath/source/rect.cxx b/starmath/source/rect.cxx index 6f5faf57ec20..169933fcb6de 100644 --- a/starmath/source/rect.cxx +++ b/starmath/source/rect.cxx @@ -190,8 +190,8 @@ SmRect::SmRect(const OutputDevice &rDev, const SmFormat *pFormat, bHasAlignInfo = true; bHasBaseline = true; nBaseline = aFM.GetAscent(); - nAlignT = nBaseline - nFontHeight * 750L / 1000L; - nAlignM = nBaseline - nFontHeight * 121L / 422L; + nAlignT = nBaseline - nFontHeight * 750 / 1000; + nAlignM = nBaseline - nFontHeight * 121 / 422; // that's where the horizontal bars of '+', '-', ... are // (1/3 of ascent over baseline) // (121 = 1/3 of 12pt ascent, 422 = 12pt fontheight) @@ -212,7 +212,7 @@ SmRect::SmRect(const OutputDevice &rDev, const SmFormat *pFormat, if (nDelta == 0) { // this value approx. fits a Leading of 80 at a // Fontheight of 422 (12pt) - nDelta = nFontHeight * 8L / 43; + nDelta = nFontHeight * 8 / 43; } SetTop(GetTop() - nDelta); @@ -235,7 +235,7 @@ SmRect::SmRect(const OutputDevice &rDev, const SmFormat *pFormat, long nDist = 0; if (pFormat) nDist = (rDev.GetFont().GetFontSize().Height() - * pFormat->GetDistance(DIS_ORNAMENTSIZE)) / 100L; + * pFormat->GetDistance(DIS_ORNAMENTSIZE)) / 100; nHiAttrFence = aGlyphRect.TopLeft().Y() - 1 - nBorderWidth - nDist; nLoAttrFence = SmFromTo(GetAlignB(), GetBottom(), 0.0); |