diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-30 15:10:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-01 08:26:49 +0200 |
commit | 03516c505eced337149782a67b2ad98c246929b3 (patch) | |
tree | c499c7912cf65ebbf13c729782a93adc3f856a55 /linguistic/source | |
parent | 9b3643820bf821c8be728ed20a8cb7ed05cabef2 (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 'linguistic/source')
-rw-r--r-- | linguistic/source/misc.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/linguistic/source/misc.cxx b/linguistic/source/misc.cxx index a8ba9b99c3bc..3702af806e17 100644 --- a/linguistic/source/misc.cxx +++ b/linguistic/source/misc.cxx @@ -542,9 +542,7 @@ uno::Reference< XHyphenatedWord > RebuildHyphensAndControlChars( aLeft = rOrigWord.copy( 0, nPos ); aRight = rOrigWord.copy( nPos ); // FIXME: changes at the right side - aOrigHyphenatedWord = aLeft; - aOrigHyphenatedWord += aRplc; - aOrigHyphenatedWord += aRight; + aOrigHyphenatedWord = aLeft + aRplc + aRight; nOrigHyphenPos = sal::static_int_cast< sal_Int16 >(aLeft.getLength() + rxHyphWord->getHyphenPos() - nChgPos); |