vcl/source/gdi/pdfwriter_impl.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
New commits: commit b6fb455deeef8f5199a53dda4ee6fdad9667d482 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Fri Jul 12 08:49:07 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Fri Jul 12 20:04:17 2024 +0200 cid#1555260 Use of auto that causes a copy Change-Id: I256705562832a408b751b28c0bb133f4561e5522 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170410 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 3f6d9bbcbfdd..f5c391ee7bf5 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -2740,10 +2740,11 @@ bool PDFWriterImpl::emitType3Font(const vcl::font::PhysicalFontFace* pFace, aBitmapEx = BitmapEx(aBitmapEx.GetBitmap(), aAlpha); } - auto aBitmapEmit = createBitmapEmit(aBitmapEx, Graphic(), - aUsedBitmaps, aResourceDict, aOutputStreams); + const BitmapEmit& rBitmapEmit = createBitmapEmit(aBitmapEx, Graphic(), + aUsedBitmaps, aResourceDict, + aOutputStreams); - auto nObject = aBitmapEmit.m_aReferenceXObject.getObject(); + auto nObject = rBitmapEmit.m_aReferenceXObject.getObject(); aContents.append("q "); appendDouble(aRect.GetWidth() * fScale, aContents); aContents.append(" 0 0 ");