From 042033f1e6da22616cb76c8d950c20c9efecbad5 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 28 Dec 2020 17:56:40 +0100 Subject: loplugin:stringviewparam: operator + Change-Id: I044dd21b63d7eb03224675584fa143009c6b6008 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108418 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- framework/source/jobs/helponstartup.cxx | 8 ++++---- framework/source/jobs/jobdata.cxx | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'framework/source/jobs') 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 >(); -- cgit