summaryrefslogtreecommitdiff
path: root/sc/source/filter/excel/xetable.cxx
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/source/filter/excel/xetable.cxx
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/source/filter/excel/xetable.cxx')
-rw-r--r--sc/source/filter/excel/xetable.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/filter/excel/xetable.cxx b/sc/source/filter/excel/xetable.cxx
index e8d9bb81062a..98127479cf95 100644
--- a/sc/source/filter/excel/xetable.cxx
+++ b/sc/source/filter/excel/xetable.cxx
@@ -783,7 +783,7 @@ void XclExpLabelCell::SaveXml( XclExpXmlStream& rStrm )
// OOXTODO: XML_cm, XML_vm, XML_ph
FSEND );
rWorksheet->startElement( XML_v, FSEND );
- rWorksheet->write( (sal_Int32) mnSstIndex );
+ rWorksheet->write( static_cast<sal_Int32>(mnSstIndex) );
rWorksheet->endElement( XML_v );
rWorksheet->endElement( XML_c );
}
@@ -1520,13 +1520,13 @@ void XclExpDimensions::SetDimensions(
void XclExpDimensions::SaveXml( XclExpXmlStream& rStrm )
{
ScRange aRange;
- aRange.aStart.SetRow( (SCROW) mnFirstUsedXclRow );
- aRange.aStart.SetCol( (SCCOL) mnFirstUsedXclCol );
+ aRange.aStart.SetRow( static_cast<SCROW>(mnFirstUsedXclRow) );
+ aRange.aStart.SetCol( static_cast<SCCOL>(mnFirstUsedXclCol) );
if( mnFirstFreeXclRow != mnFirstUsedXclRow && mnFirstFreeXclCol != mnFirstUsedXclCol )
{
- aRange.aEnd.SetRow( (SCROW) (mnFirstFreeXclRow-1) );
- aRange.aEnd.SetCol( (SCCOL) (mnFirstFreeXclCol-1) );
+ aRange.aEnd.SetRow( static_cast<SCROW>(mnFirstFreeXclRow-1) );
+ aRange.aEnd.SetCol( static_cast<SCCOL>(mnFirstFreeXclCol-1) );
}
aRange.PutInOrder();
@@ -2117,7 +2117,7 @@ void XclExpRow::SaveXml( XclExpXmlStream& rStrm )
// OOXTODO: XML_spans, optional
XML_s, haveFormat ? lcl_GetStyleId( rStrm, mnXFIndex ).getStr() : nullptr,
XML_customFormat, ToPsz( haveFormat ),
- XML_ht, OString::number( (double) mnHeight / 20.0 ).getStr(),
+ XML_ht, OString::number( static_cast<double>(mnHeight) / 20.0 ).getStr(),
XML_hidden, ToPsz( ::get_flag( mnFlags, EXC_ROW_HIDDEN ) ),
XML_customHeight, ToPsz( ::get_flag( mnFlags, EXC_ROW_UNSYNCED ) ),
XML_outlineLevel, OString::number( mnOutlineLevel ).getStr(),