summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/pdfwriter_impl.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-07-12 08:49:07 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-07-12 20:04:17 +0200
commitb6fb455deeef8f5199a53dda4ee6fdad9667d482 (patch)
tree1d9809d538ec2263f9f2868d8faad4de02edecca /vcl/source/gdi/pdfwriter_impl.cxx
parenta0f3225984f865b9604c420543a5951a21185ba6 (diff)
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.mcnamara@collabora.com>
Diffstat (limited to 'vcl/source/gdi/pdfwriter_impl.cxx')
-rw-r--r--vcl/source/gdi/pdfwriter_impl.cxx7
1 files changed, 4 insertions, 3 deletions
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 ");