diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-01-12 15:45:50 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-01-13 07:36:57 +0100 |
commit | 363a3be9bb17bd85fd52c1f22abdf649e7cd0d0b (patch) | |
tree | 3223ec3147f3d5f4034b5bc2cc2702302526558c /sfx2 | |
parent | 3fff050a343e7fb45c3c562772b22fb5e824352f (diff) |
loplugin:stringviewparam (clang-cl)
Change-Id: Ie66996f905fcb68ee413171c8727cb42dcb28dbc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109178
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/appdde.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sfx2/source/appl/appdde.cxx b/sfx2/source/appl/appdde.cxx index 0746c19755d2..c31ef2bd5e25 100644 --- a/sfx2/source/appl/appdde.cxx +++ b/sfx2/source/appl/appdde.cxx @@ -17,6 +17,10 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <sal/config.h> + +#include <string_view> + #include <config_features.h> #include <rtl/character.hxx> #include <rtl/malformeduriexception.hxx> @@ -223,10 +227,10 @@ namespace { rCmd = "Open(\"d:\doc\doc.sdw\")" rEvent = "Open" */ -bool SfxAppEvent_Impl( const OUString& rCmd, const OUString& rEvent, +bool SfxAppEvent_Impl( const OUString& rCmd, std::u16string_view rEvent, ApplicationEvent::Type eType ) { - OUString sEvent(rEvent + "("); + OUString sEvent(OUString::Concat(rEvent) + "("); if (rCmd.startsWithIgnoreAsciiCase(sEvent)) { sal_Int32 start = sEvent.getLength(); @@ -300,8 +304,8 @@ bool SfxAppEvent_Impl( const OUString& rCmd, const OUString& rEvent, bool SfxApplication::DdeExecute( const OUString& rCmd ) // Expressed in our BASIC-Syntax { // Print or Open-Event? - if ( !( SfxAppEvent_Impl( rCmd, "Print", ApplicationEvent::Type::Print ) || - SfxAppEvent_Impl( rCmd, "Open", ApplicationEvent::Type::Open ) ) ) + if ( !( SfxAppEvent_Impl( rCmd, u"Print", ApplicationEvent::Type::Print ) || + SfxAppEvent_Impl( rCmd, u"Open", ApplicationEvent::Type::Open ) ) ) { // all others are BASIC StarBASIC* pBasic = GetBasic(); |