summaryrefslogtreecommitdiff
path: root/vcl/source/filter/jpeg/JpegWriter.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-06-03 14:45:59 +0200
committerMichael Stahl <mstahl@redhat.com>2016-06-06 18:09:11 +0000
commit62d270116bf34778bf581f21b27fa9cdbff7de0e (patch)
tree0402df0506ab8f6825ef497f27426f01d2e01850 /vcl/source/filter/jpeg/JpegWriter.cxx
parentd0bc637426060593046c8d3a4d01d0b05b052cc5 (diff)
tools: rename SvStream::Read/Write to ReadBytes/WriteBytes
Change-Id: Ib788a30d413436aa03f813aa2fddcbc4d6cd2f9a Reviewed-on: https://gerrit.libreoffice.org/25972 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'vcl/source/filter/jpeg/JpegWriter.cxx')
-rw-r--r--vcl/source/filter/jpeg/JpegWriter.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/filter/jpeg/JpegWriter.cxx b/vcl/source/filter/jpeg/JpegWriter.cxx
index 27fd6f23a96c..d25bf89406d6 100644
--- a/vcl/source/filter/jpeg/JpegWriter.cxx
+++ b/vcl/source/filter/jpeg/JpegWriter.cxx
@@ -53,7 +53,7 @@ extern "C" boolean empty_output_buffer (j_compress_ptr cinfo)
{
DestinationManagerStruct * destination = reinterpret_cast<DestinationManagerStruct *>(cinfo->dest);
- if (destination->stream->Write(destination->buffer, BUFFER_SIZE) != (size_t) BUFFER_SIZE)
+ if (destination->stream->WriteBytes(destination->buffer, BUFFER_SIZE) != BUFFER_SIZE)
{
ERREXIT(cinfo, JERR_FILE_WRITE);
}
@@ -72,7 +72,7 @@ extern "C" void term_destination (j_compress_ptr cinfo)
/* Write any data remaining in the buffer */
if (datacount > 0)
{
- if (destination->stream->Write(destination->buffer, datacount) != datacount)
+ if (destination->stream->WriteBytes(destination->buffer, datacount) != datacount)
{
ERREXIT(cinfo, JERR_FILE_WRITE);
}