diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-20 10:23:46 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-20 13:30:18 +0000 |
commit | 349844128c876041311d30ba0e7740e73fc89261 (patch) | |
tree | d9142134b54d7f192286995c1b579d0e669783c2 | |
parent | 730ce18b6a25172a0a7a120b0aa3fd3e4f41319b (diff) |
XUnoTunnel->dynamic_cast in SwXDocumentIndex
Change-Id: Ie1196623d345e20eaaaadf8bb8b4a4db72bf77e0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145881
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | sw/source/core/inc/unoidx.hxx | 8 | ||||
-rw-r--r-- | sw/source/core/unocore/unoidx.cxx | 12 |
2 files changed, 0 insertions, 20 deletions
diff --git a/sw/source/core/inc/unoidx.hxx b/sw/source/core/inc/unoidx.hxx index b87dff47a919..30eca1011a1d 100644 --- a/sw/source/core/inc/unoidx.hxx +++ b/sw/source/core/inc/unoidx.hxx @@ -20,7 +20,6 @@ #define INCLUDED_SW_SOURCE_CORE_INC_UNOIDX_HXX #include <com/sun/star/lang/XServiceInfo.hpp> -#include <com/sun/star/lang/XUnoTunnel.hpp> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/container/XNamed.hpp> #include <com/sun/star/util/XRefreshable.hpp> @@ -41,7 +40,6 @@ class SwTOXType; typedef ::cppu::ImplInheritanceHelper < ::sfx2::MetadatableMixin -, css::lang::XUnoTunnel , css::lang::XServiceInfo , css::beans::XPropertySet , css::container::XNamed @@ -79,12 +77,6 @@ public: virtual css::uno::Reference< css::frame::XModel > GetModel() override; - static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId(); - - // XUnoTunnel - virtual sal_Int64 SAL_CALL getSomething( - const css::uno::Sequence< sal_Int8 >& rIdentifier) override; - // XServiceInfo virtual OUString SAL_CALL getImplementationName() override; virtual sal_Bool SAL_CALL supportsService( diff --git a/sw/source/core/unocore/unoidx.cxx b/sw/source/core/unocore/unoidx.cxx index 46218e70efdd..dd123d618267 100644 --- a/sw/source/core/unocore/unoidx.cxx +++ b/sw/source/core/unocore/unoidx.cxx @@ -424,18 +424,6 @@ SwXDocumentIndex::CreateXDocumentIndex( return xIndex; } -const uno::Sequence< sal_Int8 > & SwXDocumentIndex::getUnoTunnelId() -{ - static const comphelper::UnoIdInit theSwXDocumentIndexUnoTunnelId; - return theSwXDocumentIndexUnoTunnelId.getSeq(); -} - -sal_Int64 SAL_CALL -SwXDocumentIndex::getSomething(const uno::Sequence< sal_Int8 >& rId) -{ - return comphelper::getSomethingImpl<SwXDocumentIndex>(rId, this); -} - OUString SAL_CALL SwXDocumentIndex::getImplementationName() { |