From ec98adb2ec71882801a4db031c8e2bcf3075c5a0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 23 Oct 2018 09:46:31 +0200 Subject: clang-tidy performance-unnecessary-copy-init in sd Change-Id: I4a494aebdae9b9cba3794e5eee1f3a29eb3ec838 Reviewed-on: https://gerrit.libreoffice.org/62250 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sd/source/ui/docshell/docshel3.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sd/source/ui/docshell') diff --git a/sd/source/ui/docshell/docshel3.cxx b/sd/source/ui/docshell/docshel3.cxx index b79cd11cf1bb..a9925bf5f13b 100644 --- a/sd/source/ui/docshell/docshel3.cxx +++ b/sd/source/ui/docshell/docshel3.cxx @@ -224,7 +224,7 @@ void DrawDocShell::Execute( SfxRequest& rReq ) case SID_GET_COLORLIST: { const SvxColorListItem* pColItem = GetItem( SID_COLOR_TABLE ); - XColorListRef pList = pColItem->GetColorList(); + const XColorListRef& pList = pColItem->GetColorList(); rReq.SetReturnValue( OfaRefItem( SID_GET_COLORLIST, pList ) ); } break; -- cgit