diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-07-02 09:38:23 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-07-02 13:42:22 +0200 |
commit | a3fe1c6fa79c00dad9c62c8f45a084a938083a01 (patch) | |
tree | 813bbc46ad38d8666adada3fa773bab35516cb82 /ucb/source/ucp/cmis | |
parent | 52dc33d76ff990ca7a264583dc1c22f474ee3290 (diff) |
cid#1557889 Use of auto that causes a copy
Change-Id: I6c510fa69e8db6ddc6ca6b9a169f4181ef62adab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169861
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-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 | 3 |
1 files changed, 1 insertions, 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 { |