summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKemal Ayhan <kemalayhan013@gmail.com>2019-12-29 18:34:40 +0300
committerTor Lillqvist <tml@collabora.com>2019-12-30 10:36:12 +0100
commit3a3110564bcda4678fb804d01013e226fd2fbe93 (patch)
treea92486d89dd1fd15bafde7c88f97a096ccb7b6ce /sc
parenta8fb4e91a1feb1f4f562d9345636986c1c66a517 (diff)
tdf#96505 - Get rid of cargo cult long integer literals
Change-Id: Iaf0cfc96771e33493becfad77af9b7f3b7c817d5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85950 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/printfun.cxx2
-rw-r--r--sc/source/ui/view/viewdata.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/view/printfun.cxx b/sc/source/ui/view/printfun.cxx
index 2b3760fbeeac..dc1930baff27 100644
--- a/sc/source/ui/view/printfun.cxx
+++ b/sc/source/ui/view/printfun.cxx
@@ -792,7 +792,7 @@ void ScPrintFunc::UpdateHFHeight( ScPrintHFParam& rParam )
if (rParam.pShadow && rParam.pShadow->GetLocation() != SvxShadowLocation::NONE)
nPaperWidth -= ( rParam.pShadow->CalcShadowSpace(SvxShadowItemSide::LEFT) +
- rParam.pShadow->CalcShadowSpace(SvxShadowItemSide::RIGHT) ) * 100L / nZoom;
+ rParam.pShadow->CalcShadowSpace(SvxShadowItemSide::RIGHT) ) * 100 / nZoom;
pEditEngine->SetPaperSize( Size( nPaperWidth, 10000 ) );
diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index 564c367d60f3..b719605dde56 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -3226,9 +3226,9 @@ void ScViewData::ReadExtOptions( const ScExtDocOptions& rDocOpt )
// zoom for each sheet
if( rTabSett.mnNormalZoom )
- rViewTab.aZoomX = rViewTab.aZoomY = Fraction( rTabSett.mnNormalZoom, 100L );
+ rViewTab.aZoomX = rViewTab.aZoomY = Fraction( rTabSett.mnNormalZoom, 100 );
if( rTabSett.mnPageZoom )
- rViewTab.aPageZoomX = rViewTab.aPageZoomY = Fraction( rTabSett.mnPageZoom, 100L );
+ rViewTab.aPageZoomX = rViewTab.aPageZoomY = Fraction( rTabSett.mnPageZoom, 100 );
rViewTab.bShowGrid = rTabSett.mbShowGrid;