From fd2e907e448991e5c8b54acbe7e31bff24c8e875 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 18 Jul 2022 11:28:34 +0200 Subject: comphelper::ByteWriter::writeSomeBytes always writes all bytes ...so rename it to writeBytes for clarity, and drop the redundant return value. Also clarify that it has a narrow interface and requires nBytesToWrite to be non-negative. Change-Id: I76dee83fecd6350f473f55dcffb950c16aa22d93 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137169 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- include/comphelper/bytereader.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/comphelper/bytereader.hxx b/include/comphelper/bytereader.hxx index a7e899098846..49d683f233b8 100644 --- a/include/comphelper/bytereader.hxx +++ b/include/comphelper/bytereader.hxx @@ -34,7 +34,7 @@ class COMPHELPER_DLLPUBLIC ByteWriter { public: virtual ~ByteWriter(); - virtual sal_Int32 writeSomeBytes(const sal_Int8* aData, sal_Int32 nBytesToWrite) = 0; + virtual void writeBytes(const sal_Int8* aData, sal_Int32 nBytesToWrite) = 0; static const css::uno::Sequence& getUnoTunnelId(); }; -- cgit