diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-03-04 14:50:59 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-03-04 17:48:42 +0100 |
commit | ac2c0cb0ccb7e8978ec64059901e4b2aa44f239f (patch) | |
tree | ae41ed640977311e51b2c3e2a2e6503c9cc0fbf8 /sw | |
parent | 9868ac008e1a5e8f769b5d2cdf8078b83cc38ce5 (diff) |
just make copy of string, not create a new one and then concat to it
Change-Id: I559744b4a92c1ab222e2a80ea44042ba5c3d48a6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130993
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/ww8par.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx index 178cc6cdc84f..6614c5195f28 100644 --- a/sw/source/filter/ww8/ww8par.cxx +++ b/sw/source/filter/ww8/ww8par.cxx @@ -333,10 +333,7 @@ void SwWW8ImplReader::ReadEmbeddedData(SvStream& rStrm, SwDocShell const * pDocS } if (!xLongName && xShortName) - { - xLongName.reset( new OUString ); - *xLongName += *xShortName; - } + xLongName.reset(new OUString(*xShortName)); else if (!xLongName && xTextMark) xLongName.reset( new OUString ); |