summaryrefslogtreecommitdiff
path: root/sw/source/core/view
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-11-11 21:59:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-11-12 07:37:13 +0100
commit48b667a7e7d25f835f95df89162a7849d6972531 (patch)
tree50d900c95e6b2ae6bac6919a350ca3a2fd71c943 /sw/source/core/view
parent693553210828538680408832157faad9654758c8 (diff)
remove Fraction::operator tools::Long()
which was added in commit 331e2e5ed3bf4e0b2c1fab3b7bca836170317827 Author: Noel Grandin <noel.grandin@collabora.co.uk> Date: Thu Sep 14 08:49:52 2017 +0200 long->sal_Int32 in Fraction presumably to make the change impact less code. Instead, update the call sites to reflect the actual bitwidth of the data we will be receiving. Change-Id: If2a678b1cf534f39cb8cb249757462be53658309 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105607 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/view')
-rw-r--r--sw/source/core/view/pagepreviewlayout.cxx2
-rw-r--r--sw/source/core/view/viewpg.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/view/pagepreviewlayout.cxx b/sw/source/core/view/pagepreviewlayout.cxx
index 57fda67e4e2c..ab1346a5e3e0 100644
--- a/sw/source/core/view/pagepreviewlayout.cxx
+++ b/sw/source/core/view/pagepreviewlayout.cxx
@@ -209,7 +209,7 @@ void SwPagePreviewLayout::Init( const sal_uInt16 _nCols,
{
// adjust scaling for Drawing layer.
aYScale *= Fraction( 1000, 1 );
- tools::Long nNewNuminator = aYScale.operator long();
+ tools::Long nNewNuminator = sal_Int32(aYScale);
if( nNewNuminator < 1 )
nNewNuminator = 1;
aYScale = Fraction( nNewNuminator, 1000 );
diff --git a/sw/source/core/view/viewpg.cxx b/sw/source/core/view/viewpg.cxx
index 98df16715059..6a681ad09a6a 100644
--- a/sw/source/core/view/viewpg.cxx
+++ b/sw/source/core/view/viewpg.cxx
@@ -160,7 +160,7 @@ void SwViewShell::PrintProspect(
{
// Round percentages for Drawings so that these can paint their objects properly
aScY *= Fraction( 1000, 1 );
- tools::Long nTmp = static_cast<tools::Long>(aScY);
+ tools::Long nTmp = static_cast<sal_Int32>(aScY);
if( 1 < nTmp )
--nTmp;
else