summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-03-17 10:14:55 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-03-17 09:41:13 +0000
commitf5bfc127ddabf5f94d0cd1c1e4e6727b4dd3f73a (patch)
tree15eb958e9aac29848face84df98d29a79f51bf5f /xmlsecurity
parent657743ec52c5706a88666afe554752ce0d160361 (diff)
elide some temporary OUStrings
where we are calling append(OUString::createFromAscii( and we can rather call appendAscii Change-Id: I2366b518fe6d8d2484b00bb831cb79fb49bc0293 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149043 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
index b12a3356d18c..aa0b0c2d4612 100644
--- a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
+++ b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
@@ -156,7 +156,7 @@ OUString SecurityEnvironment_NssImpl::getSecurityEnvironmentInformation()
OUStringBuffer buff;
for (auto& slot : m_Slots)
{
- buff.append(OUString::createFromAscii(PK11_GetTokenName(slot)));
+ buff.appendAscii(PK11_GetTokenName(slot));
buff.append("\n");
}
return buff.makeStringAndClear();