summaryrefslogtreecommitdiff
path: root/sfx2/source/notify
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-26 13:54:03 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-26 13:55:34 +0200
commit99f4c12a6e75058587f779d52db77ba20f85dac8 (patch)
treec1fdbaabb11df5d9571e3aa9d5feebb3eb8356ac /sfx2/source/notify
parent85c6b88e74b4a6f058cc55c2ed2772699211ce66 (diff)
loplugin:stringconstant: handle OUString+=OUString(literal)
Change-Id: I40b8e5df15d836a00536d9f21cd1125264aefd86
Diffstat (limited to 'sfx2/source/notify')
-rw-r--r--sfx2/source/notify/eventsupplier.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/sfx2/source/notify/eventsupplier.cxx b/sfx2/source/notify/eventsupplier.cxx
index b6ad3b1902d1..51ad4dc932a3 100644
--- a/sfx2/source/notify/eventsupplier.cxx
+++ b/sfx2/source/notify/eventsupplier.cxx
@@ -463,11 +463,8 @@ void SfxEvents_Impl::NormalizeMacro( const ::comphelper::NamedValueCollection& i
{
aScript = MACRO_PRFIX;
if ( aLibrary != SfxGetpApp()->GetName() && aLibrary != "StarDesktop" && aLibrary != "application" )
- aScript += OUString('.');
-
- aScript += OUString('/');
- aScript += aMacroName;
- aScript += OUString( MACRO_POSTFIX );
+ aScript += ".";
+ aScript += "/" + aMacroName + MACRO_POSTFIX;
}
else
// wrong properties