sw/source/filter/ww8/ww8par.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
New commits: commit ac2c0cb0ccb7e8978ec64059901e4b2aa44f239f Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Mar 4 14:50:59 2022 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Fri Mar 4 17:48:42 2022 +0100 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 <caol...@redhat.com> 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 );