summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-01-12 11:49:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-01-13 06:15:21 +0000
commit14df26ac57696c11fd344bb16ec22738e42377fc (patch)
tree38d06a93a5f01e014be6b93cbc420d016bd4405e /ucb
parent20adf4683c7d38ad41edac586b897757393c8029 (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/file/filstr.cxx7
-rw-r--r--ucb/source/ucp/file/filstr.hxx6
2 files changed, 1 insertions, 12 deletions
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<sal_Int32>(nrc);
}
-sal_Int64 SAL_CALL XStream_impl::getSomething( const css::uno::Sequence< sal_Int8 >& rIdentifier )
-{
- if (rIdentifier == comphelper::ByteReader::getUnoTunnelId())
- return reinterpret_cast<sal_Int64>(static_cast<comphelper::ByteReader*>(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(