summaryrefslogtreecommitdiff
path: root/xmlsecurity/source/gpg/XMLSecurityContext.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-05-15 13:12:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-05-15 18:03:51 +0200
commit6e267990695548db227c918679b907c60263cb81 (patch)
tree96bca33746fe1a26a348a35c74a1dee8977c349d /xmlsecurity/source/gpg/XMLSecurityContext.cxx
parent11bfced0a4f1d5f3ccaf8e1c87c11733ca71f29d (diff)
loplugin:ostr in xmlsecurity
Change-Id: Ifb936c230f68447b3bb5993705adb5e5b790371f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167668 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
Diffstat (limited to 'xmlsecurity/source/gpg/XMLSecurityContext.cxx')
-rw-r--r--xmlsecurity/source/gpg/XMLSecurityContext.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/xmlsecurity/source/gpg/XMLSecurityContext.cxx b/xmlsecurity/source/gpg/XMLSecurityContext.cxx
index 1fb407113f7a..1dbbb0e2183f 100644
--- a/xmlsecurity/source/gpg/XMLSecurityContext.cxx
+++ b/xmlsecurity/source/gpg/XMLSecurityContext.cxx
@@ -27,7 +27,7 @@ sal_Int32 SAL_CALL XMLSecurityContextGpg::addSecurityEnvironment(
const Reference<XSecurityEnvironment>& aSecurityEnvironment)
{
if (!aSecurityEnvironment.is())
- throw RuntimeException("Invalid SecurityEnvironment given!");
+ throw RuntimeException(u"Invalid SecurityEnvironment given!"_ustr);
m_vSecurityEnvironments.push_back(aSecurityEnvironment);
return m_vSecurityEnvironments.size() - 1;
@@ -42,7 +42,7 @@ Reference<XSecurityEnvironment>
SAL_CALL XMLSecurityContextGpg::getSecurityEnvironmentByIndex(sal_Int32 index)
{
if (index < 0 || o3tl::make_unsigned(index) >= m_vSecurityEnvironments.size())
- throw RuntimeException("Invalid index");
+ throw RuntimeException(u"Invalid index"_ustr);
return m_vSecurityEnvironments[index];
}
@@ -51,7 +51,7 @@ Reference<XSecurityEnvironment> SAL_CALL XMLSecurityContextGpg::getSecurityEnvir
{
if (m_nDefaultEnvIndex < 0
|| o3tl::make_unsigned(m_nDefaultEnvIndex) >= m_vSecurityEnvironments.size())
- throw RuntimeException("Invalid index");
+ throw RuntimeException(u"Invalid index"_ustr);
return getSecurityEnvironmentByIndex(m_nDefaultEnvIndex);
}
@@ -69,7 +69,7 @@ void SAL_CALL XMLSecurityContextGpg::setDefaultSecurityEnvironmentIndex(sal_Int3
/* XServiceInfo */
OUString SAL_CALL XMLSecurityContextGpg::getImplementationName()
{
- return "com.sun.star.xml.security.gpg.XMLSecurityContext_GpgImpl";
+ return u"com.sun.star.xml.security.gpg.XMLSecurityContext_GpgImpl"_ustr;
}
/* XServiceInfo */
@@ -81,7 +81,7 @@ sal_Bool SAL_CALL XMLSecurityContextGpg::supportsService(const OUString& service
/* XServiceInfo */
Sequence<OUString> SAL_CALL XMLSecurityContextGpg::getSupportedServiceNames()
{
- return { OUString("com.sun.star.xml.crypto.XMLSecurityContext") };
+ return { u"com.sun.star.xml.crypto.XMLSecurityContext"_ustr };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */