summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml/xmltble.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:13:41 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:13:41 +0100
commit0ae2d98d1f6d29c80bd1ee830db4c333e4ee1e1d (patch)
treed9b77eece17b7b144a4ea50592b639b9f7c87095 /sw/source/filter/xml/xmltble.cxx
parent506856ca50e676520bcc80a8b498355663d0388f (diff)
More loplugin:cstylecast: sw
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: I0f49d21dfdf82742f11b27709f74294feb1e419e
Diffstat (limited to 'sw/source/filter/xml/xmltble.cxx')
-rw-r--r--sw/source/filter/xml/xmltble.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/filter/xml/xmltble.cxx b/sw/source/filter/xml/xmltble.cxx
index d68d5e06148a..4077ce852723 100644
--- a/sw/source/filter/xml/xmltble.cxx
+++ b/sw/source/filter/xml/xmltble.cxx
@@ -88,9 +88,9 @@ struct SwXMLTableColumnCmpWidth_Impl
{
bool operator()( SwXMLTableColumn_Impl* const& lhs, SwXMLTableColumn_Impl* const& rhs ) const
{
- sal_Int32 n = (sal_Int32)lhs->GetWidthOpt() - (sal_Int32)rhs->GetWidthOpt();
+ sal_Int32 n = static_cast<sal_Int32>(lhs->GetWidthOpt()) - static_cast<sal_Int32>(rhs->GetWidthOpt());
if( !n )
- n = (sal_Int32)lhs->GetRelWidth() - (sal_Int32)rhs->GetRelWidth();
+ n = static_cast<sal_Int32>(lhs->GetRelWidth()) - static_cast<sal_Int32>(rhs->GetRelWidth());
return n < 0;
}
};
@@ -296,7 +296,7 @@ static OUString lcl_xmltble_appendBoxPrefix(const OUString& rNamePrefix,
if( bTop )
{
OUString sTmp;
- sw_GetTableBoxColStr( (sal_uInt16)nCol, sTmp );
+ sw_GetTableBoxColStr( static_cast<sal_uInt16>(nCol), sTmp );
return rNamePrefix + "." + sTmp + OUString::number(nRow + 1);
}
return rNamePrefix
@@ -543,7 +543,7 @@ void SwXMLExport::ExportTableColumnStyle( const SwXMLTableColumn_Impl& rCol )
}
if( rCol.GetRelWidth() )
{
- sValue.append( (sal_Int32)rCol.GetRelWidth() );
+ sValue.append( static_cast<sal_Int32>(rCol.GetRelWidth()) );
sValue.append( '*' );
AddAttribute( XML_NAMESPACE_STYLE, XML_REL_COLUMN_WIDTH,
sValue.makeStringAndClear() );