diff options
author | Noel <noelgrandin@gmail.com> | 2020-11-11 18:08:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-12 07:37:38 +0100 |
commit | 1397a1c8e4995b0dd336478e564880fe8ad91d1d (patch) | |
tree | 41a4cf915bb52d453e6eb5a57c15b8718d847874 /include/editeng/itemtype.hxx | |
parent | remove Fraction::operator tools::Long() (diff) | |
download | core-1397a1c8e4995b0dd336478e564880fe8ad91d1d.tar.gz core-1397a1c8e4995b0dd336478e564880fe8ad91d1d.zip |
remove BigInt::operator tools::Long()
which was introduced in
commit adf0738d2dbfa742d0e9ef130954fb4638a8e90d
Author: Noel Grandin <noel.grandin@collabora.co.uk>
Date: Wed Jan 3 14:25:15 2018 +0200
long->sal_Int32 in BigInt
presumably to make the conversion easier.
Instead just fix the call-sites to select a better
conversion, BigInt only returns 32-bits of precision
anyway.
Change-Id: I2e4354bcfded01763fe3312a715ef37800297876
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105602
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/editeng/itemtype.hxx')
-rw-r--r-- | include/editeng/itemtype.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/editeng/itemtype.hxx b/include/editeng/itemtype.hxx index 19d2a19b4ee3..9adcb98cb370 100644 --- a/include/editeng/itemtype.hxx +++ b/include/editeng/itemtype.hxx @@ -42,7 +42,7 @@ inline tools::Long Scale( tools::Long nVal, tools::Long nMult, tools::Long nDiv aVal *= nMult; aVal += nDiv/2; aVal /= nDiv; - return aVal; + return static_cast<sal_Int32>(aVal); } #endif |