vcl/source/pdf/pdfwriter_impl.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 9961b77676ae3486d0aa00aae9a38ca7adbf33fc Author: Christopher Sherlock <[email protected]> AuthorDate: Tue Sep 9 22:56:51 2025 +1000 Commit: Julien Nabet <[email protected]> CommitDate: Tue Sep 30 09:17:45 2025 +0200 vcl: make bGrey const Change-Id: I6d161cd7bc904437d5e3fb3898fad340db8e2447 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190882 Tested-by: Jenkins Reviewed-by: Julien Nabet <[email protected]> diff --git a/vcl/source/pdf/pdfwriter_impl.cxx b/vcl/source/pdf/pdfwriter_impl.cxx index 4b22ca32d61d..28ceeb5b923d 100644 --- a/vcl/source/pdf/pdfwriter_impl.cxx +++ b/vcl/source/pdf/pdfwriter_impl.cxx @@ -415,7 +415,7 @@ void PDFWriterImpl::appendStrokingColor( const Color& rColor, OStringBuffer& rBu { if( rColor != COL_TRANSPARENT ) { - bool bGrey = m_aContext.ColorMode == PDFWriter::DrawGreyscale; + const bool bGrey = m_aContext.ColorMode == PDFWriter::DrawGreyscale; appendColor( rColor, rBuffer, bGrey ); rBuffer.append( bGrey ? " G" : " RG" ); } @@ -425,7 +425,7 @@ void PDFWriterImpl::appendNonStrokingColor( const Color& rColor, OStringBuffer& { if( rColor != COL_TRANSPARENT ) { - bool bGrey = m_aContext.ColorMode == PDFWriter::DrawGreyscale; + const bool bGrey = m_aContext.ColorMode == PDFWriter::DrawGreyscale; appendColor( rColor, rBuffer, bGrey ); rBuffer.append( bGrey ? " g" : " rg" ); }
