sw/source/core/doc/textboxhelper.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 749ec5a7914b7ad0ca716719168786b417883792
Author:     Miklos Vajna <[email protected]>
AuthorDate: Mon Jun 15 09:51:33 2020 +0200
Commit:     Miklos Vajna <[email protected]>
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 <[email protected]>
    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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to