summaryrefslogtreecommitdiff
path: root/xmloff/source/core
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-01 18:25:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-02 08:47:24 +0200
commit366eaa1a383a0f5f3f755f2b6a739d3d9c5b8343 (patch)
tree0b7b4876a3e35d40a75818593214df7717e5f3b5 /xmloff/source/core
parent91c836acea76cffb0e2d5df0d15fc94d84bfdc5a (diff)
loplugin:stringadd in writerfilter..xmloff
Change-Id: Ib5292f4c702cc1e2994c736250a93e6fb18d1a20 Reviewed-on: https://gerrit.libreoffice.org/79988 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/core')
-rw-r--r--xmloff/source/core/DocumentSettingsContext.cxx3
-rw-r--r--xmloff/source/core/XMLBase64ImportContext.cxx3
2 files changed, 2 insertions, 4 deletions
diff --git a/xmloff/source/core/DocumentSettingsContext.cxx b/xmloff/source/core/DocumentSettingsContext.cxx
index 9d3bafb53b54..59c61614e6d8 100644
--- a/xmloff/source/core/DocumentSettingsContext.cxx
+++ b/xmloff/source/core/DocumentSettingsContext.cxx
@@ -489,8 +489,7 @@ void XMLConfigItemContext::Characters( const OUString& rChars )
OUString sChars;
if( !msValue.isEmpty() )
{
- sChars = msValue;
- sChars += sTrimmedChars;
+ sChars = msValue + sTrimmedChars;
msValue.clear();
}
else
diff --git a/xmloff/source/core/XMLBase64ImportContext.cxx b/xmloff/source/core/XMLBase64ImportContext.cxx
index f7291c39a7d3..f39bd39cb80d 100644
--- a/xmloff/source/core/XMLBase64ImportContext.cxx
+++ b/xmloff/source/core/XMLBase64ImportContext.cxx
@@ -55,8 +55,7 @@ void XMLBase64ImportContext::Characters( const OUString& rChars )
OUString sChars;
if( !sBase64CharsLeft.isEmpty() )
{
- sChars = sBase64CharsLeft;
- sChars += sTrimmedChars;
+ sChars = sBase64CharsLeft + sTrimmedChars;
sBase64CharsLeft.clear();
}
else