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:
@@ -1130,8 +1130,7 @@ namespace cmis
|
|||||||
std::vector< std::string > aPaths = pPwc->getPaths( );
|
std::vector< std::string > aPaths = pPwc->getPaths( );
|
||||||
if ( !aPaths.empty() )
|
if ( !aPaths.empty() )
|
||||||
{
|
{
|
||||||
auto sPath = aPaths.front( );
|
aCmisUrl.setObjectPath(STD_TO_OUSTR(aPaths.front()));
|
||||||
aCmisUrl.setObjectPath( STD_TO_OUSTR( sPath ) );
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user