diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:32:40 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:33:41 +0100 |
commit | f701cce539c58874c07ef7487075b29143cc9ed1 (patch) | |
tree | fac593eb7f7cf06be3763df5c67319a3e977ded0 /xmloff/source/draw/ximpstyl.cxx | |
parent | fa683a7020837ee04b8f610490edf08b686cb6b8 (diff) |
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: Ib054b36c87c87ae2189b5456bc9b12d7b76c49e7
Diffstat (limited to 'xmloff/source/draw/ximpstyl.cxx')
-rw-r--r-- | xmloff/source/draw/ximpstyl.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/source/draw/ximpstyl.cxx b/xmloff/source/draw/ximpstyl.cxx index 594ac324743d..a490221f8010 100644 --- a/xmloff/source/draw/ximpstyl.cxx +++ b/xmloff/source/draw/ximpstyl.cxx @@ -1102,7 +1102,7 @@ rtl::Reference< SvXMLImportPropertyMapper > SdXMLStylesContext::GetImportPropert if(!xPresImpPropMapper.is()) { rtl::Reference< XMLShapeImportHelper > aImpHelper = ((SvXMLImport&)GetImport()).GetShapeImport(); - ((SdXMLStylesContext*)this)->xPresImpPropMapper = + const_cast<SdXMLStylesContext*>(this)->xPresImpPropMapper = aImpHelper->GetPresPagePropsMapper(); } xMapper = xPresImpPropMapper; @@ -1305,7 +1305,7 @@ void SdXMLStylesContext::ImpSetGraphicStyles( uno::Reference< container::XNameAc if(nFamily == pStyle->GetFamily() && pStyle->IsDefaultStyle()) { - ((SvXMLStyleContext*)pStyle)->SetDefaults(); + const_cast<SvXMLStyleContext*>(pStyle)->SetDefaults(); } } @@ -1428,7 +1428,7 @@ void SdXMLStylesContext::ImpSetGraphicStyles( uno::Reference< container::XNameAc if(xStyle.is()) { // set parent style name - OUString sParentStyleDisplayName( const_cast< SvXMLImport& >( GetImport() ).GetStyleDisplayName( pStyle->GetFamily(), pStyle->GetParentName() ) ); + OUString sParentStyleDisplayName( GetImport().GetStyleDisplayName( pStyle->GetFamily(), pStyle->GetParentName() ) ); if( nPrefLen ) { sal_Int32 nStylePrefLen = sParentStyleDisplayName.lastIndexOf( '-' ) + 1; |