Kaydet (Commit) 730df730 authored tarafından Matteo Casalin's avatar Matteo Casalin

Avoid unneeded OUString copy

Change-Id: I43d66f1bf4fc4a17f7dbea62e3fb13675dbbfb8a
Reviewed-on: https://gerrit.libreoffice.org/68119
Tested-by: Jenkins
Reviewed-by: 's avatarMatteo Casalin <matteo.casalin@yahoo.com>
üst 3cf14673
......@@ -269,13 +269,10 @@ OString XRMResParser::GetAttribute( const OString &rToken, const OString &rAttri
sSearch += "=";
sal_Int32 nPos = sTmp.indexOf( sSearch );
if ( nPos != -1 )
{
sTmp = sTmp.copy( nPos );
OString sId = sTmp.getToken(1, '"');
return sId;
}
return OString();
if ( nPos<0 )
return OString();
return sTmp.getToken(1, '"', nPos);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment