sw/source/core/doc/textboxhelper.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 749ec5a7914b7ad0ca716719168786b417883792 Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Mon Jun 15 09:51:33 2020 +0200 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Mon Jun 15 12:10:27 2020 +0200 sw: fix unnecessary copy initialization Change-Id: Ida66ded1de95829f0a053bc6b4be29ea2daa88e2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96316 Reviewed-by: Miklos Vajna <vmik...@collabora.com> Tested-by: Jenkins diff --git a/sw/source/core/doc/textboxhelper.cxx b/sw/source/core/doc/textboxhelper.cxx index ae7084605e4c..51ee8c36e431 100644 --- a/sw/source/core/doc/textboxhelper.cxx +++ b/sw/source/core/doc/textboxhelper.cxx @@ -700,8 +700,8 @@ void SwTextBoxHelper::syncFlyFrameAttr(SwFrameFormat& rShape, SfxItemSet const& { if (rShape.GetAnchor().GetAnchorId() != RndStdIds::FLY_AS_CHAR) { - SwFormatAnchor pShapeAnch = rShape.GetAnchor(); - aTextBoxSet.Put(pShapeAnch); + const SwFormatAnchor& rShapeAnch = rShape.GetAnchor(); + aTextBoxSet.Put(rShapeAnch); } switch (pItem->Which()) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits