summaryrefslogtreecommitdiff
path: root/sfx2
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
parent85c6b88e74b4a6f058cc55c2ed2772699211ce66 (diff)
loplugin:stringconstant: handle OUString+=OUString(literal)
Change-Id: I40b8e5df15d836a00536d9f21cd1125264aefd86
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/dialoghelper.cxx6
-rw-r--r--sfx2/source/notify/eventsupplier.cxx7
2 files changed, 4 insertions, 9 deletions
diff --git a/sfx2/source/dialog/dialoghelper.cxx b/sfx2/source/dialog/dialoghelper.cxx
index e60edb12ba31..554238de844b 100644
--- a/sfx2/source/dialog/dialoghelper.cxx
+++ b/sfx2/source/dialog/dialoghelper.cxx
@@ -88,10 +88,8 @@ OUString getWidestTime(const LocaleDataWrapper& rWrapper)
OUString formatTime(const DateTime& rDateTime, const LocaleDataWrapper& rWrapper)
{
- OUString sString = rWrapper.getDate(rDateTime);
- sString += OUString(' ');
- sString += rWrapper.getTime(rDateTime, false);
- return sString;
+ return rWrapper.getDate(rDateTime) + " "
+ + rWrapper.getTime(rDateTime, false);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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