summaryrefslogtreecommitdiff
path: root/sc/inc/bigrange.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:17:13 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:17:13 +0100
commit681783c9adf85bde36348f11c03d3a483bf545be (patch)
treea5b8a4eab1695275b3d2516738b43c0d3f6ee158 /sc/inc/bigrange.hxx
parentfe45359ab818659186672a0ca05979b589dedbfc (diff)
More loplugin:cstylecast: sc
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I987ac3a6d062600a5e21c3462c70595dfaa51796
Diffstat (limited to 'sc/inc/bigrange.hxx')
-rw-r--r--sc/inc/bigrange.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/inc/bigrange.hxx b/sc/inc/bigrange.hxx
index 5c8fbb5bfab8..995b03d1a36a 100644
--- a/sc/inc/bigrange.hxx
+++ b/sc/inc/bigrange.hxx
@@ -83,21 +83,21 @@ inline ScAddress ScBigAddress::MakeAddress() const
else if ( nCol > MAXCOL )
nColA = MAXCOL;
else
- nColA = (SCCOL) nCol;
+ nColA = static_cast<SCCOL>(nCol);
if ( nRow < 0 )
nRowA = 0;
else if ( nRow > MAXROW )
nRowA = MAXROW;
else
- nRowA = (SCROW) nRow;
+ nRowA = static_cast<SCROW>(nRow);
if ( nTab < 0 )
nTabA = 0;
else if ( nTab > MAXTAB )
nTabA = MAXTAB;
else
- nTabA = (SCTAB) nTab;
+ nTabA = static_cast<SCTAB>(nTab);
return ScAddress( nColA, nRowA, nTabA );
}