[Libreoffice-commits] core.git: xmlsecurity/source
Rosen
rosen at live.com
Thu Aug 4 05:50:33 UTC 2016
xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
New commits:
commit 3c9d834af059bf3e9485ab9f0190733aa21dd9a6
Author: Rosen <rosen at live.com>
Date: Thu Aug 4 07:04:59 2016 +0530
tdf#100726 Improve readability of OUString concatanations
concat string to easy readability
Change-Id: Ied5db1d74ad6266df558b859074257fd0049ad29
Reviewed-on: https://gerrit.libreoffice.org/27858
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
diff --git a/xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx b/xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx
index 4c975a2..109fec4 100644
--- a/xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx
+++ b/xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx
@@ -163,10 +163,7 @@ OUString replaceTagSWithTagST(OUString oldDN)
if (pairIndex.first != -1)
{
- OUString newDN = oldDN.copy(0, pairIndex.first);
- newDN += "ST";
- newDN += oldDN.copy(pairIndex.second);
- return newDN;
+ return oldDN.copy(0, pairIndex.first)+"ST"+oldDN.copy(pairIndex.second);
}
return oldDN;
}
More information about the Libreoffice-commits
mailing list