diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:31:55 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:33:38 +0100 |
commit | 6f3c52bb37f52f57fea6479f1da6c1828fbd85fe (patch) | |
tree | d8e6db66db4c28335a62fbec4a282541ae083a85 /sw/source/filter/xml/xmlfmt.cxx | |
parent | 5429049e3b8fd12e84aca83be7ca19e52920f672 (diff) |
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: Icb14a036ea9d7636359b6bc5e0af17568c0d54cb
Diffstat (limited to 'sw/source/filter/xml/xmlfmt.cxx')
-rw-r--r-- | sw/source/filter/xml/xmlfmt.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/xml/xmlfmt.cxx b/sw/source/filter/xml/xmlfmt.cxx index 8cf6b00bc780..b4f243b13657 100644 --- a/sw/source/filter/xml/xmlfmt.cxx +++ b/sw/source/filter/xml/xmlfmt.cxx @@ -881,7 +881,7 @@ uno::Reference < container::XNameContainer > SwXMLStylesContext_Impl::GetStylesC { uno::Reference < container::XNameContainer > xStyles; if( XML_STYLE_FAMILY_SD_GRAPHICS_ID == nFamily ) - xStyles = ((SvXMLImport *)&GetImport())->GetTextImport()->GetFrameStyles(); + xStyles = const_cast<SvXMLImport *>(&GetImport())->GetTextImport()->GetFrameStyles(); else xStyles = SvXMLStylesContext::GetStylesContainer( nFamily ); |