From a3fe1c6fa79c00dad9c62c8f45a084a938083a01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Tue, 2 Jul 2024 09:38:23 +0100 Subject: [PATCH] cid#1557889 Use of auto that causes a copy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I6c510fa69e8db6ddc6ca6b9a169f4181ef62adab Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169861 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- ucb/source/ucp/cmis/cmis_content.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ucb/source/ucp/cmis/cmis_content.cxx b/ucb/source/ucp/cmis/cmis_content.cxx index 6bd5146bb7bc..2fc413b913bd 100644 --- a/ucb/source/ucp/cmis/cmis_content.cxx +++ b/ucb/source/ucp/cmis/cmis_content.cxx @@ -1130,8 +1130,7 @@ namespace cmis std::vector< std::string > aPaths = pPwc->getPaths( ); if ( !aPaths.empty() ) { - auto sPath = aPaths.front( ); - aCmisUrl.setObjectPath( STD_TO_OUSTR( sPath ) ); + aCmisUrl.setObjectPath(STD_TO_OUSTR(aPaths.front())); } else {