From 1397a1c8e4995b0dd336478e564880fe8ad91d1d Mon Sep 17 00:00:00 2001 From: Noel Date: Wed, 11 Nov 2020 18:08:40 +0200 Subject: remove BigInt::operator tools::Long() which was introduced in commit adf0738d2dbfa742d0e9ef130954fb4638a8e90d Author: Noel Grandin 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 --- svx/source/svdraw/svdattr.cxx | 2 +- svx/source/svdraw/svdedtv1.cxx | 8 ++++---- svx/source/svdraw/svdobj.cxx | 8 ++++---- svx/source/svdraw/svdotxdr.cxx | 8 ++++---- svx/source/svdraw/svdtrans.cxx | 2 +- svx/source/svdraw/svdxcgv.cxx | 4 ++-- svx/source/xoutdev/xattr.cxx | 2 +- 7 files changed, 17 insertions(+), 17 deletions(-) (limited to 'svx') diff --git a/svx/source/svdraw/svdattr.cxx b/svx/source/svdraw/svdattr.cxx index 2e007ea7d513..58aa365e02ae 100644 --- a/svx/source/svdraw/svdattr.cxx +++ b/svx/source/svdraw/svdattr.cxx @@ -855,7 +855,7 @@ void SdrMetricItem::ScaleMetrics(tools::Long nMul, tools::Long nDiv) aVal*=nMul; aVal+=nDiv/2; // to round accurately aVal/=nDiv; - SetValue(tools::Long(aVal)); + SetValue(sal_Int32(aVal)); } } diff --git a/svx/source/svdraw/svdedtv1.cxx b/svx/source/svdraw/svdedtv1.cxx index 0beba3a215aa..5f98c816c65f 100644 --- a/svx/source/svdraw/svdedtv1.cxx +++ b/svx/source/svdraw/svdedtv1.cxx @@ -131,10 +131,10 @@ void SdrEditView::SetMarkedObjRect(const tools::Rectangle& rRect) } else { t=0; b=h1; } - aR1.SetLeft(tools::Long(l) ); - aR1.SetRight(tools::Long(r) ); - aR1.SetTop(tools::Long(t) ); - aR1.SetBottom(tools::Long(b) ); + aR1.SetLeft(sal_Int32(l) ); + aR1.SetRight(sal_Int32(r) ); + aR1.SetTop(sal_Int32(t) ); + aR1.SetBottom(sal_Int32(b) ); aR1.Move(x1,y1); } pO->SetSnapRect(aR1); diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx index 638c590a52cd..6b2db29caf7d 100644 --- a/svx/source/svdraw/svdobj.cxx +++ b/svx/source/svdraw/svdobj.cxx @@ -1236,12 +1236,12 @@ tools::Rectangle SdrObject::ImpDragCalcRect(const SdrDragStat& rDrag) const if (bEcke) { // corner point handles bool bUseX=(aXFactSetLogicRect(aR); diff --git a/svx/source/xoutdev/xattr.cxx b/svx/source/xoutdev/xattr.cxx index f8b532ab554e..072448f7121c 100644 --- a/svx/source/xoutdev/xattr.cxx +++ b/svx/source/xoutdev/xattr.cxx @@ -103,7 +103,7 @@ static tools::Long ScaleMetricValue( tools::Long nVal, tools::Long nMul, tools:: aVal/=nDiv; - return tools::Long( aVal ); + return sal_Int32( aVal ); } NameOrIndex::NameOrIndex(sal_uInt16 _nWhich, sal_Int32 nIndex) : -- cgit