[Libreoffice-commits] core.git: sw/source

Miklos Vajna (via logerrit) logerrit at kemper.freedesktop.org
Mon Jun 15 10:11:10 UTC 2020


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

New commits:
commit 749ec5a7914b7ad0ca716719168786b417883792
Author:     Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Mon Jun 15 09:51:33 2020 +0200
Commit:     Miklos Vajna <vmiklos at 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 <vmiklos at 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())


More information about the Libreoffice-commits mailing list