summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-03-04 14:50:59 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-03-04 17:48:42 +0100
commitac2c0cb0ccb7e8978ec64059901e4b2aa44f239f (patch)
treeae41ed640977311e51b2c3e2a2e6503c9cc0fbf8 /sw
parent9868ac008e1a5e8f769b5d2cdf8078b83cc38ce5 (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.cxx5
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 );