diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-07-12 08:53:09 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-07-12 20:04:43 +0200 |
commit | 5e55d482b19812e2fc3063eb7e718d7013635b33 (patch) | |
tree | 3d665136a377c767722df565f8a8bc5e510e6c65 /ucb/source/ucp/cmis | |
parent | 6f0f0bbaebfc0added603a04918324df58b6c27b (diff) |
cid#1555962 Use of auto that causes a copy
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 <caolan.mcnamara@collabora.com>
Diffstat (limited to 'ucb/source/ucp/cmis')
-rw-r--r-- | ucb/source/ucp/cmis/cmis_content.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
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( ) ) |