From 33c2a79f141cd20078f82dba5a9292dd6046df6e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 11 Nov 2024 22:06:41 +0200 Subject: clang-tidy: performance-unnecessary-copy-initialization in vcl Change-Id: Idb09d0d256601fb3b9e822404b2f57f41d04d713 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176443 Reviewed-by: Noel Grandin Tested-by: Jenkins --- vcl/source/gdi/graph.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl/source/gdi/graph.cxx') diff --git a/vcl/source/gdi/graph.cxx b/vcl/source/gdi/graph.cxx index 06b033709941..534a72350f21 100644 --- a/vcl/source/gdi/graph.cxx +++ b/vcl/source/gdi/graph.cxx @@ -200,7 +200,7 @@ Graphic::Graphic(const Image& rImage) // FIXME: should really defer the BitmapEx load. : mxImpGraphic(new ImpGraphic(rImage.GetBitmapEx())) { - OUString aStock = rImage.GetStock(); + const OUString& aStock = rImage.GetStock(); if (aStock.getLength()) mxImpGraphic->setOriginURL("private:graphicrepository/" + aStock); } -- cgit