summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-11-11 22:05:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-11-12 08:41:41 +0100
commit65d52af42f329bbe7c5e7d6ac617320f7faa4760 (patch)
tree0560945506bfb04f3587e16eadff0a4fd7b50925 /svtools
parent2c3fc08d119989f731a46a4af357e2366d3c508c (diff)
clang-tidy: performance-unnecessary-copy-initialization in svx
Change-Id: I80bdcae1db64f7693600178d86c122c5875369b2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176440 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/misc/embedhlp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/misc/embedhlp.cxx b/svtools/source/misc/embedhlp.cxx
index 78b5909f1602..b3a291936aed 100644
--- a/svtools/source/misc/embedhlp.cxx
+++ b/svtools/source/misc/embedhlp.cxx
@@ -853,7 +853,7 @@ void EmbeddedObjectRef::SetGraphicToContainer( const Graphic& rGraphic,
SvMemoryStream aStream;
aStream.SetVersion( SOFFICE_FILEFORMAT_CURRENT );
- auto pGfxLink = rGraphic.GetSharedGfxLink();
+ const auto& pGfxLink = rGraphic.GetSharedGfxLink();
if (pGfxLink && pGfxLink->IsNative())
{
if (pGfxLink->ExportNative(aStream))