diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-09-12 16:38:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-09-12 19:27:53 +0200 |
commit | 4000d57869fda437f0361dc4ac991858905a40e9 (patch) | |
tree | 9a592253826ad2b0d51346a2799b86da1ea40567 /xmloff/source/transform/StyleOASISTContext.cxx | |
parent | ca44362491b8f823b4d36cddfd5e6242074cc211 (diff) |
use more concrete UNO types in xmloff
Change-Id: Idf2bcf23497ef5d673ab36f776f562e8c964b3a3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173270
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/transform/StyleOASISTContext.cxx')
-rw-r--r-- | xmloff/source/transform/StyleOASISTContext.cxx | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/xmloff/source/transform/StyleOASISTContext.cxx b/xmloff/source/transform/StyleOASISTContext.cxx index fadc188bf8bc..75e99d205d39 100644 --- a/xmloff/source/transform/StyleOASISTContext.cxx +++ b/xmloff/source/transform/StyleOASISTContext.cxx @@ -58,7 +58,7 @@ const sal_uInt16 aAttrActionMaps[XML_PROP_TYPE_END] = class XMLPropertiesTContext_Impl : public XMLPersElemContentTContext { - css::uno::Reference< css::xml::sax::XAttributeList > m_xAttrList; + rtl::Reference< XMLMutableAttributeList > m_xAttrList; XMLPropType m_ePropType; bool const m_bControlStyle; @@ -113,17 +113,9 @@ void XMLPropertiesTContext_Impl::StartElement( if( pActions ) { - rtl::Reference<XMLMutableAttributeList> pAttrList; if( !m_xAttrList.is() ) - { - pAttrList = new XMLMutableAttributeList(); - m_xAttrList = pAttrList; - } - else - { - pAttrList = - static_cast< XMLMutableAttributeList * >( m_xAttrList.get() ); - } + m_xAttrList = new XMLMutableAttributeList(); + rtl::Reference<XMLMutableAttributeList> pAttrList = m_xAttrList; XMLTokenEnum eUnderline = XML_TOKEN_END; bool bBoldUnderline = false, bDoubleUnderline = false; @@ -583,8 +575,7 @@ void XMLPropertiesTContext_Impl::StartElement( } else { - static_cast< XMLMutableAttributeList * >( m_xAttrList.get() ) - ->AppendAttributeList( rAttrList ); + m_xAttrList->AppendAttributeList( rAttrList ); } } } |