sd/source/core/stlsheet.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit bc4a9f007b77eb60537c4ec3f1bcefa36089d96e
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Mon Oct 14 12:23:37 2024 +0100
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Thu Oct 17 11:11:09 2024 +0200

    we don't need to copy the Name here, a reference is sufficient
    
    48s -> 47.8s
    
    Change-Id: Ib95b701d424b0b92aa3848b75f81c41eff0af2ea
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175033
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>

diff --git a/sd/source/core/stlsheet.cxx b/sd/source/core/stlsheet.cxx
index 9a47edf3fc1a..096ca2d6eb32 100644
--- a/sd/source/core/stlsheet.cxx
+++ b/sd/source/core/stlsheet.cxx
@@ -953,7 +953,7 @@ void SAL_CALL SdStyleSheet::setParentStyle( const OUString& 
rParentName  )
 
     if( !rParentName.isEmpty() )
     {
-        OUString const name(GetName());
+        OUString const& name(GetName());
         sal_Int32 const sep(name.indexOf(SD_LT_SEPARATOR));
         OUString const master((sep == -1) ? OUString() : name.copy(0, sep));
         std::shared_ptr<SfxStyleSheetIterator> aSSSI = 
std::make_shared<SfxStyleSheetIterator>(mxPool.get(), nFamily);
@@ -967,7 +967,7 @@ void SAL_CALL SdStyleSheet::setParentStyle( const OUString& 
rParentName  )
             if (pSdStyleSheet->msApiName != rParentName)
                 continue;
 
-            OUString const curName(pStyle->GetName());
+            OUString const& curName(pStyle->GetName());
             sal_Int32 const curSep(curName.indexOf(SD_LT_SEPARATOR));
             OUString const curMaster((curSep == -1)
                     ? OUString() : curName.copy(0, curSep));

Reply via email to