diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-06-03 21:06:41 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-06-05 21:17:59 +0200 |
commit | f9efb261dd4a0627ab144aa450c45d07f0420f23 (patch) | |
tree | 414593ba46a2528471f88b6cd62156e469f22cfe /xmloff | |
parent | 0f84a32f5b1dbc9f3751b4f8432283867932e155 (diff) |
Improved loplugin:cstylecast to reference types: xmloff
Change-Id: Iff207fb9dfbe5cc354abdeb5833786a52bedbb3c
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/draw/ximpstyl.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/style/HatchStyle.cxx | 3 | ||||
-rw-r--r-- | xmloff/source/style/xmlstyle.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/txtexppr.cxx | 2 |
4 files changed, 4 insertions, 5 deletions
diff --git a/xmloff/source/draw/ximpstyl.cxx b/xmloff/source/draw/ximpstyl.cxx index 010c16ab6669..a9cbc922ec0d 100644 --- a/xmloff/source/draw/ximpstyl.cxx +++ b/xmloff/source/draw/ximpstyl.cxx @@ -1043,7 +1043,7 @@ rtl::Reference< SvXMLImportPropertyMapper > SdXMLStylesContext::GetImportPropert { if(!xPresImpPropMapper.is()) { - rtl::Reference< XMLShapeImportHelper > aImpHelper = ((SvXMLImport&)GetImport()).GetShapeImport(); + rtl::Reference< XMLShapeImportHelper > aImpHelper = const_cast<SvXMLImport&>(GetImport()).GetShapeImport(); const_cast<SdXMLStylesContext*>(this)->xPresImpPropMapper = aImpHelper->GetPresPagePropsMapper(); } diff --git a/xmloff/source/style/HatchStyle.cxx b/xmloff/source/style/HatchStyle.cxx index 3a0db19b9ecc..1c8915eacff9 100644 --- a/xmloff/source/style/HatchStyle.cxx +++ b/xmloff/source/style/HatchStyle.cxx @@ -120,8 +120,7 @@ void XMLHatchStyleImport::importXML( ::sax::Converter::convertColor(aHatch.Color, rStrValue); break; case XML_TOK_HATCH_DISTANCE: - rUnitConverter.convertMeasureToCore( - (sal_Int32&)aHatch.Distance, rStrValue ); + rUnitConverter.convertMeasureToCore(aHatch.Distance, rStrValue); break; case XML_TOK_HATCH_ROTATION: { diff --git a/xmloff/source/style/xmlstyle.cxx b/xmloff/source/style/xmlstyle.cxx index 71a2e4e2b5b2..a44a04321b62 100644 --- a/xmloff/source/style/xmlstyle.cxx +++ b/xmloff/source/style/xmlstyle.cxx @@ -615,7 +615,7 @@ rtl::Reference < SvXMLImportPropertyMapper > SvXMLStylesContext::GetImportProper case XML_STYLE_FAMILY_SD_POOL_ID: if(!mxShapeImpPropMapper.is()) { - rtl::Reference< XMLShapeImportHelper > aImpHelper = ((SvXMLImport&)GetImport()).GetShapeImport(); + rtl::Reference< XMLShapeImportHelper > aImpHelper = const_cast<SvXMLImport&>(GetImport()).GetShapeImport(); const_cast<SvXMLStylesContext*>(this)->mxShapeImpPropMapper = aImpHelper->GetPropertySetMapper(); } diff --git a/xmloff/source/text/txtexppr.cxx b/xmloff/source/text/txtexppr.cxx index d1397608e9fa..383eceb83562 100644 --- a/xmloff/source/text/txtexppr.cxx +++ b/xmloff/source/text/txtexppr.cxx @@ -248,7 +248,7 @@ void XMLTextExportPropertySetMapper::ContextFontFilter( //"Find" which restores the original logic. if (pFontFamilyNameState || pFontStyleNameState) { - OUString sName( ((SvXMLExport&)GetExport()).GetFontAutoStylePool()->Find( + OUString sName( const_cast<SvXMLExport&>(GetExport()).GetFontAutoStylePool()->Find( sFamilyName, sStyleName, nFamily, nPitch, eEnc ) ); if (!sName.isEmpty()) { |