diff --git a/editeng/source/items/xmlcnitm.cxx b/editeng/source/items/xmlcnitm.cxx index 50733ade4dd4..7507ed2afdd0 100644 --- a/editeng/source/items/xmlcnitm.cxx +++ b/editeng/source/items/xmlcnitm.cxx @@ -76,8 +76,8 @@ bool SvXMLAttrContainerItem::QueryValue( css::uno::Any& rVal, sal_uInt8 /*nMembe bool SvXMLAttrContainerItem::PutValue( const css::uno::Any& rVal, sal_uInt8 /*nMemberId*/ ) { - Reference xTunnel(rVal, UNO_QUERY); - if (auto pContainer = comphelper::getFromUnoTunnel(xTunnel)) + Reference xTunnel(rVal, UNO_QUERY); + if (auto pContainer = dynamic_cast(xTunnel.get())) { maContainerData = *pContainer->GetContainerImpl(); } diff --git a/include/xmloff/unoatrcn.hxx b/include/xmloff/unoatrcn.hxx index 8e5556bb18aa..b09a06250215 100644 --- a/include/xmloff/unoatrcn.hxx +++ b/include/xmloff/unoatrcn.hxx @@ -28,18 +28,16 @@ #include #include #include -#include #include -#include +#include extern css::uno::Reference< css::uno::XInterface > SvUnoAttributeContainer_CreateInstance(); class XMLOFF_DLLPUBLIC SvUnoAttributeContainer final : - public ::cppu::WeakAggImplHelper3< + public ::cppu::WeakAggImplHelper2< css::lang::XServiceInfo, - css::lang::XUnoTunnel, css::container::XNameContainer > { private: @@ -52,9 +50,6 @@ public: SvUnoAttributeContainer( std::unique_ptr pContainer = nullptr ); SvXMLAttrContainerData* GetContainerImpl() const { return mpContainer.get(); } - static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId() noexcept; - virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override; - // css::container::XElementAccess virtual css::uno::Type SAL_CALL getElementType() override; virtual sal_Bool SAL_CALL hasElements() override; diff --git a/xmloff/source/core/unoatrcn.cxx b/xmloff/source/core/unoatrcn.cxx index 354cd47b49ce..676c1d75ac65 100644 --- a/xmloff/source/core/unoatrcn.cxx +++ b/xmloff/source/core/unoatrcn.cxx @@ -86,17 +86,6 @@ sal_uInt16 SvUnoAttributeContainer::getIndexByName(std::u16string_view aName ) c return USHRT_MAX; } -const css::uno::Sequence< sal_Int8 > & SvUnoAttributeContainer::getUnoTunnelId() noexcept -{ - static const comphelper::UnoIdInit theSvUnoAttributeContainerUnoTunnelId; - return theSvUnoAttributeContainerUnoTunnelId.getSeq(); -} - -sal_Int64 SAL_CALL SvUnoAttributeContainer::getSomething( const css::uno::Sequence< sal_Int8 >& rId ) -{ - return comphelper::getSomethingImpl(rId, this); -} - // container::XNameAccess uno::Any SAL_CALL SvUnoAttributeContainer::getByName(const OUString& aName) {