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

Avoid OUString temporaries, simplify

Change-Id: I85b3cc9684673a204c3bf7428940d8efb8082fb6
Reviewed-on: https://gerrit.libreoffice.org/66223
Tested-by: Jenkins
Reviewed-by: 's avatarMatteo Casalin <matteo.casalin@yahoo.com>
üst 577dbcf5
......@@ -458,22 +458,12 @@ bool DocumentSignatureHelper::equalsReferenceUriManifestPath(
{
//split up the uri and path into segments. Both are separated by '/'
std::vector<OUString> vUriSegments;
sal_Int32 nIndex = 0;
do
{
OUString aToken = rUri.getToken( 0, '/', nIndex );
vUriSegments.push_back(aToken);
}
while (nIndex >= 0);
for (sal_Int32 nIndex = 0; nIndex >= 0; )
vUriSegments.push_back(rUri.getToken( 0, '/', nIndex ));
std::vector<OUString> vPathSegments;
nIndex = 0;
do
{
OUString aToken = rPath.getToken( 0, '/', nIndex );
vPathSegments.push_back(aToken);
}
while (nIndex >= 0);
for (sal_Int32 nIndex = 0; nIndex >= 0; )
vPathSegments.push_back(rPath.getToken( 0, '/', nIndex ));
if (vUriSegments.size() != vPathSegments.size())
return false;
......
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