diff options
author | Kemal Ayhan <kemalayhan013@gmail.com> | 2019-12-29 18:34:40 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2019-12-30 10:36:12 +0100 |
commit | 3a3110564bcda4678fb804d01013e226fd2fbe93 (patch) | |
tree | a92486d89dd1fd15bafde7c88f97a096ccb7b6ce | |
parent | a8fb4e91a1feb1f4f562d9345636986c1c66a517 (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>
-rw-r--r-- | editeng/source/editeng/impedit3.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/printfun.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/viewdata.cxx | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx index 6e50e842d097..58c90a589dcb 100644 --- a/editeng/source/editeng/impedit3.cxx +++ b/editeng/source/editeng/impedit3.cxx @@ -2922,7 +2922,7 @@ void ImpEditEngine::RecalcFormatterFontMetrics( FormatterFontMetric& rCurMetrics { // Now in consideration of Escape/Propr // possibly enlarge Ascent or Descent - short nDiff = static_cast<short>(rFont.GetFontSize().Height()*rFont.GetEscapement()/100L); + short nDiff = static_cast<short>(rFont.GetFontSize().Height()*rFont.GetEscapement()/100); if ( rFont.GetEscapement() > 0 ) { nAscent = static_cast<sal_uInt16>(static_cast<long>(nAscent)*nPropr/100 + nDiff); 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; |