From 62531ec1091c7b3f6a3577889a18234790ec716d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 19 May 2022 13:46:40 +0200 Subject: add ByteWriter to reduce memory copying when writing data similarly to ByteReader move both of them down to comphelper, since we want to use it from comphelper, and comphelper is "below" unotools in the module dependency graph Change-Id: Ic98fa2268e125fd8e4378fb899ad5f97de721713 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134645 Tested-by: Jenkins Reviewed-by: Noel Grandin --- ucb/source/ucp/file/filstr.cxx | 4 ++-- ucb/source/ucp/file/filstr.hxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'ucb') diff --git a/ucb/source/ucp/file/filstr.cxx b/ucb/source/ucp/file/filstr.cxx index 8e605f7f1cc6..8c88b9fc2e54 100644 --- a/ucb/source/ucp/file/filstr.cxx +++ b/ucb/source/ucp/file/filstr.cxx @@ -167,8 +167,8 @@ XStream_impl::readSomeBytes( sal_Int64 SAL_CALL XStream_impl::getSomething( const css::uno::Sequence< sal_Int8 >& rIdentifier ) { - if (rIdentifier == utl::ByteReader::getUnoTunnelId()) - return reinterpret_cast(static_cast(this)); + if (rIdentifier == comphelper::ByteReader::getUnoTunnelId()) + return reinterpret_cast(static_cast(this)); return 0; } diff --git a/ucb/source/ucp/file/filstr.hxx b/ucb/source/ucp/file/filstr.hxx index 65cf4369ce75..7ba43753f261 100644 --- a/ucb/source/ucp/file/filstr.hxx +++ b/ucb/source/ucp/file/filstr.hxx @@ -26,8 +26,8 @@ #include #include #include +#include #include -#include #include #include "filrec.hxx" @@ -45,7 +45,7 @@ class XStream_impl : public cppu::WeakImplHelper< css::io::XTruncate, css::io::XAsyncOutputMonitor, css::lang::XUnoTunnel >, - public utl::ByteReader + public comphelper::ByteReader { public: -- cgit