summaryrefslogtreecommitdiff
path: root/cppuhelper/source/component_context.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-04-26 15:25:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-04-27 15:11:25 +0200
commit60728712f0f8bf72662da0b0e446ab416e9bf347 (patch)
treee950a7cb099f51bd048e7e2e2f65607282ff5052 /cppuhelper/source/component_context.cxx
parent87e0feafd3690a9b58890cc28f8ba0c521bfb557 (diff)
loplugin:ostr in cppu,cppuhelper
Change-Id: I15c00d7a87396d07be2d10a0311f308a93e8eec3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166751 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
Diffstat (limited to 'cppuhelper/source/component_context.cxx')
-rw-r--r--cppuhelper/source/component_context.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/cppuhelper/source/component_context.cxx b/cppuhelper/source/component_context.cxx
index 47dbd0b3773e..893e484be44d 100644
--- a/cppuhelper/source/component_context.cxx
+++ b/cppuhelper/source/component_context.cxx
@@ -380,7 +380,7 @@ Reference< lang::XMultiComponentFactory > ComponentContext::getServiceManager()
if ( !m_xSMgr.is() )
{
throw DeploymentException(
- "null component context service manager",
+ u"null component context service manager"_ustr,
static_cast<OWeakObject *>(this) );
}
return m_xSMgr;
@@ -446,7 +446,7 @@ void ComponentContext::disposing(std::unique_lock<std::mutex>& rGuard)
uno_Environment ** envs;
sal_Int32 envCount;
uno_getRegisteredEnvironments(
- &envs, &envCount, &rtl_allocateMemory, OUString("java").pData);
+ &envs, &envCount, &rtl_allocateMemory, u"java"_ustr.pData);
assert(envCount >= 0);
assert(envCount == 0 || envs != nullptr);
if (envs) {
@@ -502,7 +502,7 @@ ComponentContext::ComponentContext(
// create new smgr based on delegate's one
m_xSMgr.set(
xMgr->createInstanceWithContext(
- "com.sun.star.comp.stoc.OServiceManagerWrapper", xDelegate ),
+ u"com.sun.star.comp.stoc.OServiceManagerWrapper"_ustr, xDelegate ),
UNO_QUERY );
// patch DefaultContext property of new one
Reference< beans::XPropertySet > xProps( m_xSMgr, UNO_QUERY );
@@ -510,7 +510,7 @@ ComponentContext::ComponentContext(
if (xProps.is())
{
Reference< XComponentContext > xThis( this );
- xProps->setPropertyValue( "DefaultContext", Any( xThis ) );
+ xProps->setPropertyValue( u"DefaultContext"_ustr, Any( xThis ) );
}
}
catch (...)