summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-07-18 11:28:34 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-07-18 13:09:51 +0200
commitfd2e907e448991e5c8b54acbe7e31bff24c8e875 (patch)
treefb5fcca1568589e4f430259ae3f451bf7eaf148b /include
parentaaebfb9baf53e4ed221a9bb8e1772fcbb7b921ab (diff)
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 <sbergman@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/comphelper/bytereader.hxx2
1 files changed, 1 insertions, 1 deletions
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<sal_Int8>& getUnoTunnelId();
};