summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/tabview2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/view/tabview2.cxx')
-rw-r--r--sc/source/ui/view/tabview2.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sc/source/ui/view/tabview2.cxx b/sc/source/ui/view/tabview2.cxx
index ee2897e38a69..cf4770798a19 100644
--- a/sc/source/ui/view/tabview2.cxx
+++ b/sc/source/ui/view/tabview2.cxx
@@ -1125,7 +1125,7 @@ static bool lcl_FitsInWindow( double fScaleX, double fScaleY, sal_uInt16 nZoom,
SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow,
SCCOL nFixPosX, SCROW nFixPosY )
{
- double fZoomFactor = (double)Fraction(nZoom,100);
+ double fZoomFactor = static_cast<double>(Fraction(nZoom,100));
fScaleX *= fZoomFactor;
fScaleY *= fZoomFactor;
@@ -1137,7 +1137,7 @@ static bool lcl_FitsInWindow( double fScaleX, double fScaleY, sal_uInt16 nZoom,
sal_uInt16 nColTwips = pDoc->GetColWidth( nCol, nTab );
if (nColTwips)
{
- nBlockX += (long)(nColTwips * fScaleX);
+ nBlockX += static_cast<long>(nColTwips * fScaleX);
if (nBlockX > nWindowX)
return false;
}
@@ -1147,7 +1147,7 @@ static bool lcl_FitsInWindow( double fScaleX, double fScaleY, sal_uInt16 nZoom,
sal_uInt16 nColTwips = pDoc->GetColWidth( nCol, nTab );
if (nColTwips)
{
- nBlockX += (long)(nColTwips * fScaleX);
+ nBlockX += static_cast<long>(nColTwips * fScaleX);
if (nBlockX > nWindowX)
return false;
}
@@ -1163,7 +1163,7 @@ static bool lcl_FitsInWindow( double fScaleX, double fScaleY, sal_uInt16 nZoom,
sal_uInt16 nRowTwips = pDoc->GetRowHeight(nRow, nTab);
if (nRowTwips)
{
- nBlockY += (long)(nRowTwips * fScaleY);
+ nBlockY += static_cast<long>(nRowTwips * fScaleY);
if (nBlockY > nWindowY)
return false;
}
@@ -1173,7 +1173,7 @@ static bool lcl_FitsInWindow( double fScaleX, double fScaleY, sal_uInt16 nZoom,
sal_uInt16 nRowTwips = pDoc->GetRowHeight(nRow, nTab);
if (nRowTwips)
{
- nBlockY += (long)(nRowTwips * fScaleY);
+ nBlockY += static_cast<long>(nRowTwips * fScaleY);
if (nBlockY > nWindowY)
return false;
}
@@ -1350,9 +1350,9 @@ sal_uInt16 ScTabView::CalcZoom( SvxZoomType eType, sal_uInt16 nOldZoom )
double nPPTX = ScGlobal::nScreenPPTX / aViewData.GetDocShell()->GetOutputFactor();
double nPPTY = ScGlobal::nScreenPPTY;
- long nZoomX = (long) ( aWinSize.Width() * 100 /
+ long nZoomX = static_cast<long>( aWinSize.Width() * 100 /
( aPageSize.Width() * nPPTX ) );
- long nZoomY = (long) ( aWinSize.Height() * 100 /
+ long nZoomY = static_cast<long>( aWinSize.Height() * 100 /
( aPageSize.Height() * nPPTY ) );
if (nZoomX > 0)