summaryrefslogtreecommitdiff
path: root/sc/source/filter/excel
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-30 15:11:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-01 08:26:52 +0200
commit6eb7870aa10144281ccbc4702770d8ce1ceb3e9a (patch)
treea61b9bc4685c8fa4797a7b00660838937ec62e9a /sc/source/filter/excel
parent03516c505eced337149782a67b2ad98c246929b3 (diff)
loplugin:stringadd in sc
Change-Id: Idab16f785ca5e8954f8e50132938f6329106c927 Reviewed-on: https://gerrit.libreoffice.org/79891 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/filter/excel')
-rw-r--r--sc/source/filter/excel/xechart.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/filter/excel/xechart.cxx b/sc/source/filter/excel/xechart.cxx
index fbaeb04ba3b3..0f66e40409de 100644
--- a/sc/source/filter/excel/xechart.cxx
+++ b/sc/source/filter/excel/xechart.cxx
@@ -1192,8 +1192,7 @@ void XclExpChText::ConvertTitle( Reference< XTitle > const & xTitle, sal_uInt16
if (pSubTitle)
{
// append subtitle as the 2nd line of the title.
- OUString aSubTitle("\n");
- aSubTitle += *pSubTitle;
+ OUString aSubTitle = "\n" + *pSubTitle;
mxSrcLink->AppendString(aSubTitle);
}