From 14df26ac57696c11fd344bb16ec22738e42377fc Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 12 Jan 2023 11:49:29 +0200 Subject: XUnoTunnel->dynamic_cast in comphelper::ByteReader and comphelper::ByteWriter Change-Id: I1f8c864a939dff1252ba15f517f63b62d1a1e1fc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145393 Tested-by: Jenkins Reviewed-by: Noel Grandin --- ucb/source/ucp/file/filstr.cxx | 7 ------- ucb/source/ucp/file/filstr.hxx | 6 +----- 2 files changed, 1 insertion(+), 12 deletions(-) (limited to 'ucb') diff --git a/ucb/source/ucp/file/filstr.cxx b/ucb/source/ucp/file/filstr.cxx index 8c88b9fc2e54..85222141d5a3 100644 --- a/ucb/source/ucp/file/filstr.cxx +++ b/ucb/source/ucp/file/filstr.cxx @@ -165,13 +165,6 @@ XStream_impl::readSomeBytes( return static_cast(nrc); } -sal_Int64 SAL_CALL XStream_impl::getSomething( const css::uno::Sequence< sal_Int8 >& rIdentifier ) -{ - if (rIdentifier == comphelper::ByteReader::getUnoTunnelId()) - return reinterpret_cast(static_cast(this)); - return 0; -} - sal_Int32 SAL_CALL XStream_impl::readSomeBytes( uno::Sequence< sal_Int8 >& aData, diff --git a/ucb/source/ucp/file/filstr.hxx b/ucb/source/ucp/file/filstr.hxx index 7ba43753f261..acef94aa8c6d 100644 --- a/ucb/source/ucp/file/filstr.hxx +++ b/ucb/source/ucp/file/filstr.hxx @@ -43,8 +43,7 @@ class XStream_impl : public cppu::WeakImplHelper< css::io::XInputStream, css::io::XOutputStream, css::io::XTruncate, - css::io::XAsyncOutputMonitor, - css::lang::XUnoTunnel >, + css::io::XAsyncOutputMonitor >, public comphelper::ByteReader { @@ -124,9 +123,6 @@ class XStream_impl : public cppu::WeakImplHelper< virtual void SAL_CALL waitForCompletion() override; - // XUnoTunnel - virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& _rIdentifier ) override; - // utl::ByteReader virtual sal_Int32 readSomeBytes( -- cgit