summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-30 15:10:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-01 08:26:49 +0200
commit03516c505eced337149782a67b2ad98c246929b3 (patch)
treec499c7912cf65ebbf13c729782a93adc3f856a55 /oox
parent9b3643820bf821c8be728ed20a8cb7ed05cabef2 (diff)
loplugin:stringadd in helpcompiler..oox
Change-Id: I858870d883de10a673d7ce2798bda8c8f511cee5 Reviewed-on: https://gerrit.libreoffice.org/79889 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/ole/vbamodule.cxx3
-rw-r--r--oox/source/ppt/pptimport.cxx3
2 files changed, 2 insertions, 4 deletions
diff --git a/oox/source/ole/vbamodule.cxx b/oox/source/ole/vbamodule.cxx
index 889398ccfae6..b7ff5edb7aec 100644
--- a/oox/source/ole/vbamodule.cxx
+++ b/oox/source/ole/vbamodule.cxx
@@ -190,8 +190,7 @@ OUString VbaModule::readSourceCode( StorageBase& rVbaStrg ) const
{
// cntrl modifier is explicit ( but could be cntrl+shift ), parseKeyEvent
// will handle and uppercase letter appropriately
- OUString sApiKey = "^";
- sApiKey += sKey;
+ OUString sApiKey = "^" + sKey;
try
{
KeyEvent aKeyEvent = ooo::vba::parseKeyEvent( sApiKey );
diff --git a/oox/source/ppt/pptimport.cxx b/oox/source/ppt/pptimport.cxx
index efc10c69af97..b154196de2ac 100644
--- a/oox/source/ppt/pptimport.cxx
+++ b/oox/source/ppt/pptimport.cxx
@@ -155,8 +155,7 @@ bool PowerPointImport::importDocument()
SfxErrorContext aContext(ERRCTX_SFX_OPENDOC, aURL.getName(INetURLObject::LAST_SEGMENT, true, INetURLObject::DecodeMechanism::WithCharset), nullptr, RID_ERRCTX);
OUString aWarning;
aContext.GetString(ERRCODE_NONE.MakeWarning(), aWarning);
- aWarning += ":\n";
- aWarning += SvxResId(RID_SVXSTR_WARN_MISSING_SMARTART);
+ aWarning += ":\n" + SvxResId(RID_SVXSTR_WARN_MISSING_SMARTART);
// Show it.
std::unique_ptr<weld::MessageDialog> xWarn(Application::CreateMessageDialog(nullptr,