summaryrefslogtreecommitdiff
path: root/framework/source/jobs
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/jobs')
-rw-r--r--framework/source/jobs/helponstartup.cxx8
-rw-r--r--framework/source/jobs/jobdata.cxx4
2 files changed, 6 insertions, 6 deletions
diff --git a/framework/source/jobs/helponstartup.cxx b/framework/source/jobs/helponstartup.cxx
index 43b94cfa8021..f022cbb73e05 100644
--- a/framework/source/jobs/helponstartup.cxx
+++ b/framework/source/jobs/helponstartup.cxx
@@ -316,11 +316,11 @@ OUString HelpOnStartup::its_checkIfHelpEnabledAndGetURL(const OUString& sModule)
return sHelpURL;
}
-OUString HelpOnStartup::ist_createHelpURL(const OUString& sBaseURL,
- const OUString& sLocale ,
- const OUString& sSystem )
+OUString HelpOnStartup::ist_createHelpURL(std::u16string_view sBaseURL,
+ std::u16string_view sLocale ,
+ std::u16string_view sSystem )
{
- return sBaseURL + "?Language=" + sLocale + "&System=" + sSystem;
+ return OUString::Concat(sBaseURL) + "?Language=" + sLocale + "&System=" + sSystem;
}
} // namespace framework
diff --git a/framework/source/jobs/jobdata.cxx b/framework/source/jobs/jobdata.cxx
index e04b18227326..6013812e0e7f 100644
--- a/framework/source/jobs/jobdata.cxx
+++ b/framework/source/jobs/jobdata.cxx
@@ -478,7 +478,7 @@ bool JobData::hasCorrectContext(const OUString& rModuleIdent) const
}
std::vector< OUString > JobData::getEnabledJobsForEvent( const css::uno::Reference< css::uno::XComponentContext >& rxContext,
- const OUString& sEvent )
+ std::u16string_view sEvent )
{
// create a config access to "/org.openoffice.Office.Jobs/Events"
ConfigAccess aConfig(rxContext, "/org.openoffice.Office.Jobs/Events");
@@ -491,7 +491,7 @@ std::vector< OUString > JobData::getEnabledJobsForEvent( const css::uno::Referen
return std::vector< OUString >();
// check if the given event exist inside list of registered ones
- OUString sPath(sEvent + "/JobList");
+ OUString sPath(OUString::Concat(sEvent) + "/JobList");
if (!xEventRegistry->hasByHierarchicalName(sPath))
return std::vector< OUString >();