diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:09:29 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:09:29 +0100 |
commit | dec5264878903ee010e9a6296357750f6c69c844 (patch) | |
tree | e987833003c31730486c95e82b6cc97b960de1a2 /xmloff/source/text/txtdropi.cxx | |
parent | ab279d30de4188baa4b33688aaed96072f3b4818 (diff) |
More loplugin:cstylecast: xmloff
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: Ic872cef7bb9982305528ec3ce12a1871f055b752
Diffstat (limited to 'xmloff/source/text/txtdropi.cxx')
-rw-r--r-- | xmloff/source/text/txtdropi.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/source/text/txtdropi.cxx b/xmloff/source/text/txtdropi.cxx index 9101918e4519..25b247880b14 100644 --- a/xmloff/source/text/txtdropi.cxx +++ b/xmloff/source/text/txtdropi.cxx @@ -79,7 +79,7 @@ void XMLTextDropCapImportContext::ProcessAttrs( case XML_TOK_DROP_LINES: if (::sax::Converter::convertNumber( nTmp, rValue, 0, 255 )) { - aFormat.Lines = nTmp < 2 ? 0 : (sal_Int8)nTmp; + aFormat.Lines = nTmp < 2 ? 0 : static_cast<sal_Int8>(nTmp); } break; @@ -91,7 +91,7 @@ void XMLTextDropCapImportContext::ProcessAttrs( else if (::sax::Converter::convertNumber( nTmp, rValue, 1, 255 )) { bWholeWord = false; - aFormat.Count = (sal_Int8)nTmp; + aFormat.Count = static_cast<sal_Int8>(nTmp); } break; @@ -99,7 +99,7 @@ void XMLTextDropCapImportContext::ProcessAttrs( if (GetImport().GetMM100UnitConverter().convertMeasureToCore( nTmp, rValue, 0 )) { - aFormat.Distance = (sal_uInt16)nTmp; + aFormat.Distance = static_cast<sal_uInt16>(nTmp); } break; |