sw/source/core/doc/doclay.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 589bce37764d4e539a3c3ebf37fdd039be30bd51
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Thu Jun 27 09:03:10 2024 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Thu Jun 27 19:09:22 2024 +0200

    avoid OUString temporary
    
    in a hotspot
    
    Change-Id: I9fc3abc90c73e17b82fc7a4b197a91557c2ac6f4
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169610
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>
    Tested-by: Jenkins

diff --git a/sw/source/core/doc/doclay.cxx b/sw/source/core/doc/doclay.cxx
index 26431d2df24c..b5ea2bf9fe9a 100644
--- a/sw/source/core/doc/doclay.cxx
+++ b/sw/source/core/doc/doclay.cxx
@@ -1370,8 +1370,7 @@ static OUString lcl_GetUniqueFlyName(const SwDoc& rDoc, 
TranslateId pDefStrId, s
                 lcl_collectUsedNums(aUsedNums, nNmLen, *pObj, aName);
         }
 
-        OUString sName = pFlyFormat->GetName();
-        lcl_collectUsedNums(aUsedNums, nNmLen, sName, aName);
+        lcl_collectUsedNums(aUsedNums, nNmLen, pFlyFormat->GetName(), aName);
     }
 
     // All numbers are flagged accordingly, so determine the right one

Reply via email to