vcl/source/gdi/pdfwriter_impl.cxx | 4 ++-- vcl/source/gdi/pdfwriter_impl2.cxx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-)
New commits: commit d6f6ed57f052159e25f0987869a21bf60222087b Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Thu Jan 30 08:57:37 2025 +0000 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Thu Jan 30 14:22:58 2025 +0100 cid#1641647 silence Unchecked return value and cid#1641646 Unchecked return value cid#1641648 Unchecked return value cid#1641645 Unchecked return value Change-Id: Ief552a1de6a6120599d7019ad5696b4970969337 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180932 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index f88de484f126..eb7dcfdebceb 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -1462,7 +1462,7 @@ void PDFWriterImpl::endCompression() m_pCodec.reset(); sal_uInt64 nLen = m_pMemStream->Tell(); m_pMemStream->Seek( 0 ); - writeBufferBytes( m_pMemStream->GetData(), nLen ); + (void)writeBufferBytes( m_pMemStream->GetData(), nLen ); m_pMemStream.reset(); } } @@ -5088,7 +5088,7 @@ class PDFStreamIf : public cppu::WeakImplHelper< css::io::XOutputStream > if( m_bWrite && aData.hasElements() ) { sal_Int32 nBytes = aData.getLength(); - m_pWriter->writeBufferBytes( aData.getConstArray(), nBytes ); + (void)m_pWriter->writeBufferBytes( aData.getConstArray(), nBytes ); } } virtual void SAL_CALL flush() override {} diff --git a/vcl/source/gdi/pdfwriter_impl2.cxx b/vcl/source/gdi/pdfwriter_impl2.cxx index 2f06a292c936..5e648765593d 100644 --- a/vcl/source/gdi/pdfwriter_impl2.cxx +++ b/vcl/source/gdi/pdfwriter_impl2.cxx @@ -1248,7 +1248,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; - writeBufferBytes( &io_rState.getByte(), 1 ); + (void)writeBufferBytes( &io_rState.getByte(), 1 ); io_rState.flush(); } assert(i_nLength < 9); @@ -1257,7 +1257,7 @@ void PDFWriterImpl::putG4Bits( sal_uInt32 i_nLength, sal_uInt32 i_nCode, BitStre io_rState.mnNextBitPos -= i_nLength; if( io_rState.mnNextBitPos == 0 ) { - writeBufferBytes( &io_rState.getByte(), 1 ); + (void)writeBufferBytes( &io_rState.getByte(), 1 ); io_rState.flush(); } } @@ -1594,7 +1594,7 @@ void PDFWriterImpl::writeG4Stream( BitmapReadAccess const * i_pBitmap ) putG4Bits( 12, 1, aBitState ); if( aBitState.mnNextBitPos != 8 ) { - writeBufferBytes( &aBitState.getByte(), 1 ); + (void)writeBufferBytes( &aBitState.getByte(), 1 ); aBitState.flush(); } }