summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/pdfwriter_impl2.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-03-14 10:45:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-03-14 09:45:54 +0000
commit67127e9a1340076d0c8f818b41cc6c44ddd575da (patch)
tree09e7f81a95e5923af2ba1b3e332666e79fd744fa /vcl/source/gdi/pdfwriter_impl2.cxx
parent4a96f25ac3ef9f2ed940d6e56eca87bba387d451 (diff)
use more string_view in vcl::PDFObjectContainer
which makes the call sites much less verbose Change-Id: I94eef7569e419f134ce574ecd9fb2ce8f50184b2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148839 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/gdi/pdfwriter_impl2.cxx')
-rw-r--r--vcl/source/gdi/pdfwriter_impl2.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl2.cxx b/vcl/source/gdi/pdfwriter_impl2.cxx
index d342c7a229a9..4797436e1047 100644
--- a/vcl/source/gdi/pdfwriter_impl2.cxx
+++ b/vcl/source/gdi/pdfwriter_impl2.cxx
@@ -1588,7 +1588,7 @@ void PDFWriterImpl::putG4Bits( sal_uInt32 i_nLength, sal_uInt32 i_nCode, BitStre
{
io_rState.mnBuffer |= static_cast<sal_uInt8>( i_nCode >> (i_nLength - io_rState.mnNextBitPos) );
i_nLength -= io_rState.mnNextBitPos;
- writeBuffer( &io_rState.getByte(), 1 );
+ writeBufferBytes( &io_rState.getByte(), 1 );
io_rState.flush();
}
assert(i_nLength < 9);
@@ -1597,7 +1597,7 @@ void PDFWriterImpl::putG4Bits( sal_uInt32 i_nLength, sal_uInt32 i_nCode, BitStre
io_rState.mnNextBitPos -= i_nLength;
if( io_rState.mnNextBitPos == 0 )
{
- writeBuffer( &io_rState.getByte(), 1 );
+ writeBufferBytes( &io_rState.getByte(), 1 );
io_rState.flush();
}
}
@@ -1934,7 +1934,7 @@ void PDFWriterImpl::writeG4Stream( BitmapReadAccess const * i_pBitmap )
putG4Bits( 12, 1, aBitState );
if( aBitState.mnNextBitPos != 8 )
{
- writeBuffer( &aBitState.getByte(), 1 );
+ writeBufferBytes( &aBitState.getByte(), 1 );
aBitState.flush();
}
}