summaryrefslogtreecommitdiff
path: root/xmloff/source/text/txtdropi.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/text/txtdropi.cxx')
-rw-r--r--xmloff/source/text/txtdropi.cxx6
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;