Kaydet (Commit) f9efb261 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Improved loplugin:cstylecast to reference types: xmloff

Change-Id: Iff207fb9dfbe5cc354abdeb5833786a52bedbb3c
üst 0f84a32f
......@@ -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();
}
......
......@@ -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:
{
......
......@@ -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();
}
......
......@@ -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())
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment