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>
This commit is contained in:
Caolán McNamara 2024-07-02 09:38:23 +01:00
parent 52dc33d76f
commit a3fe1c6fa7

View File

@ -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
{