diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-12 16:30:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-13 18:32:21 +0000 |
commit | 9ca22b602154dfab8f45a98259e5365b0a5e7bc4 (patch) | |
tree | a757a42e12d1ef273ec059f6f10b08a449efa4f6 /xmloff | |
parent | d60722e29a0dde6282915188e5ff7e24890a14d3 (diff) |
XUnoTunnel->dynamic_cast in SvXMLAttributeList
Change-Id: I68806bf4b59f76c49f733283d9db21c68342c071
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145484
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/core/attrlist.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/xmloff/source/core/attrlist.cxx b/xmloff/source/core/attrlist.cxx index 3f9fbb6a8634..5d02d074bc9e 100644 --- a/xmloff/source/core/attrlist.cxx +++ b/xmloff/source/core/attrlist.cxx @@ -38,15 +38,14 @@ sal_Int16 SAL_CALL SvXMLAttributeList::getLength() SvXMLAttributeList::SvXMLAttributeList( const SvXMLAttributeList &r ) : - cppu::WeakImplHelper<css::xml::sax::XAttributeList, css::util::XCloneable, css::lang::XUnoTunnel>(r), + cppu::WeakImplHelper<css::xml::sax::XAttributeList, css::util::XCloneable>(r), vecAttribute( r.vecAttribute ) { } SvXMLAttributeList::SvXMLAttributeList( const uno::Reference< xml::sax::XAttributeList> & rAttrList ) { - SvXMLAttributeList* pImpl = - comphelper::getFromUnoTunnel<SvXMLAttributeList>( rAttrList ); + SvXMLAttributeList* pImpl = dynamic_cast<SvXMLAttributeList*>( rAttrList.get() ); if( pImpl ) vecAttribute = pImpl->vecAttribute; @@ -185,8 +184,4 @@ sal_Int16 SvXMLAttributeList::GetIndexByName( const OUString& rName ) const return -1; } -// XUnoTunnel & co -UNO3_GETIMPLEMENTATION_IMPL(SvXMLAttributeList) - - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |