summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-01-13 09:24:14 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-01-15 10:13:54 +0000
commit68c6133e4d52c581bb0b98ee4ed8f183eeb4f242 (patch)
treea686e3566b834fd04756f32366901e3dbea5feeb
parent92e6cd75a3599d3d411d123bd1e691ec447fa563 (diff)
XUnoTunnel->dynamic_cast in XMLMutableAttributeList
Change-Id: Ia36576da1f287c9b687042eba5d429366b3db0a3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145504 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--xmloff/source/transform/MutableAttrList.cxx13
-rw-r--r--xmloff/source/transform/MutableAttrList.hxx8
2 files changed, 1 insertions, 20 deletions
diff --git a/xmloff/source/transform/MutableAttrList.cxx b/xmloff/source/transform/MutableAttrList.cxx
index f6fc026ae91b..65da52e91f9d 100644
--- a/xmloff/source/transform/MutableAttrList.cxx
+++ b/xmloff/source/transform/MutableAttrList.cxx
@@ -57,19 +57,6 @@ XMLMutableAttributeList::~XMLMutableAttributeList()
m_xAttrList = nullptr;
}
-const css::uno::Sequence<sal_Int8>& XMLMutableAttributeList::getUnoTunnelId() noexcept
-{
- static const comphelper::UnoIdInit theXMLMutableAttributeListUnoTunnelId;
- return theXMLMutableAttributeListUnoTunnelId.getSeq();
-}
-
-// XUnoTunnel
-sal_Int64 SAL_CALL XMLMutableAttributeList::getSomething(
- const Sequence< sal_Int8 >& rId )
-{
- return comphelper::getSomethingImpl(rId, this);
-}
-
sal_Int16 SAL_CALL XMLMutableAttributeList::getLength()
{
return m_xAttrList->getLength();
diff --git a/xmloff/source/transform/MutableAttrList.hxx b/xmloff/source/transform/MutableAttrList.hxx
index c025ffc5cc94..d3405a3fe96a 100644
--- a/xmloff/source/transform/MutableAttrList.hxx
+++ b/xmloff/source/transform/MutableAttrList.hxx
@@ -21,7 +21,6 @@
#include <com/sun/star/util/XCloneable.hpp>
#include <com/sun/star/xml/sax/XAttributeList.hpp>
-#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <cppuhelper/implbase.hxx>
#include <rtl/ref.hxx>
@@ -30,8 +29,7 @@ class SvXMLAttributeList;
class XMLMutableAttributeList : public ::cppu::WeakImplHelper<
css::xml::sax::XAttributeList,
- css::util::XCloneable,
- css::lang::XUnoTunnel>
+ css::util::XCloneable>
{
css::uno::Reference< css::xml::sax::XAttributeList> m_xAttrList;
@@ -46,10 +44,6 @@ public:
bool bClone=false );
virtual ~XMLMutableAttributeList() override;
- // XUnoTunnel
- static const css::uno::Sequence<sal_Int8>& getUnoTunnelId() noexcept;
- virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override;
-
// css::xml::sax::XAttributeList
virtual sal_Int16 SAL_CALL getLength() override;
virtual OUString SAL_CALL getNameByIndex(sal_Int16 i) override;