From 5e55d482b19812e2fc3063eb7e718d7013635b33 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 12 Jul 2024 08:53:09 +0100 Subject: cid#1555962 Use of auto that causes a copy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit and cid#1556100 Use of auto that causes a copy cid#1556199 Use of auto that causes a copy cid#1556239 Use of auto that causes a copy cid#1556313 Use of auto that causes a copy cid#1556373 Use of auto that causes a copy cid#1556680 Use of auto that causes a copy cid#1557020 Use of auto that causes a copy cid#1557099 Use of auto that causes a copy cid#1557251 Use of auto that causes a copy cid#1557334 Use of auto that causes a copy cid#1557468 Use of auto that causes a copy Change-Id: Ib5ab5b33eabcac3d18899ceaaa9119e13b0139f1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170412 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- ucb/source/ucp/cmis/cmis_content.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ucb/source') diff --git a/ucb/source/ucp/cmis/cmis_content.cxx b/ucb/source/ucp/cmis/cmis_content.cxx index 2fc413b913bd..7838ba6238d8 100644 --- a/ucb/source/ucp/cmis/cmis_content.cxx +++ b/ucb/source/ucp/cmis/cmis_content.cxx @@ -1189,8 +1189,7 @@ namespace cmis std::vector< std::string > aPaths = pVersion->getPaths( ); if ( !aPaths.empty() ) { - auto sPath = aPaths.front( ); - aCmisUrl.setObjectPath( STD_TO_OUSTR( sPath ) ); + aCmisUrl.setObjectPath(STD_TO_OUSTR(aPaths.front())); } else { @@ -1319,11 +1318,10 @@ namespace cmis getXWeak() ) ), xEnv ); } - auto newName = it->second->getStrings( ).front( ); auto newPath = OUSTR_TO_STDSTR( m_sObjectPath ); if ( !newPath.empty( ) && newPath[ newPath.size( ) - 1 ] != '/' ) newPath += "/"; - newPath += newName; + newPath += it->second->getStrings( ).front( ); try { if ( !m_sObjectId.isEmpty( ) ) -- cgit