diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:28:26 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:28:26 +0100 |
commit | 898a8b00622d219741ec7649dbac560bc1f70f6b (patch) | |
tree | 56701de314ff3150fe3287ba4d02465a02dda2b6 /chart2/source/tools/XMLRangeHelper.cxx | |
parent | 56bd8bb862bf6bcb2242bc864be9abf56f0c092f (diff) |
More loplugin:cstylecast: chart2
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: I745557506326b2b0ce66d0058ebf85e5ed2a0952
Diffstat (limited to 'chart2/source/tools/XMLRangeHelper.cxx')
-rw-r--r-- | chart2/source/tools/XMLRangeHelper.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/chart2/source/tools/XMLRangeHelper.cxx b/chart2/source/tools/XMLRangeHelper.cxx index 72f9df8c6280..39e19e49a4b8 100644 --- a/chart2/source/tools/XMLRangeHelper.cxx +++ b/chart2/source/tools/XMLRangeHelper.cxx @@ -83,23 +83,23 @@ void lcl_getXMLStringForCell( const ::chart::XMLRangeHelper::Cell & rCell, OUStr // get A, B, C, ..., AA, AB, ... representation of column number if( nCol < 26 ) - output->append( (sal_Unicode)('A' + nCol) ); + output->append( static_cast<sal_Unicode>('A' + nCol) ); else if( nCol < 702 ) { - output->append( (sal_Unicode)('A' + nCol / 26 - 1 )); - output->append( (sal_Unicode)('A' + nCol % 26) ); + output->append( static_cast<sal_Unicode>('A' + nCol / 26 - 1 )); + output->append( static_cast<sal_Unicode>('A' + nCol % 26) ); } else // works for nCol <= 18,278 { - output->append( (sal_Unicode)('A' + nCol / 702 - 1 )); - output->append( (sal_Unicode)('A' + (nCol % 702) / 26 )); - output->append( (sal_Unicode)('A' + nCol % 26) ); + output->append( static_cast<sal_Unicode>('A' + nCol / 702 - 1 )); + output->append( static_cast<sal_Unicode>('A' + (nCol % 702) / 26 )); + output->append( static_cast<sal_Unicode>('A' + nCol % 26) ); } // write row number as number if( ! rCell.bRelativeRow ) output->append( '$' ); - output->append( rCell.nRow + (sal_Int32)1 ); + output->append( rCell.nRow + sal_Int32(1) ); } void lcl_getSingleCellAddressFromXMLString( |