sw/inc/fesh.hxx                  |    2 +-
 sw/source/core/frmedt/fefly1.cxx |    4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)

New commits:
commit 62619de850773f55de646dea7e63a52a7e2ef819
Author:     Noel Grandin <[email protected]>
AuthorDate: Tue Mar 19 16:07:04 2024 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Wed Mar 20 09:02:26 2024 +0100

    remove dead code in SwFEShell::GetConnectableFrameFormats
    
    ever since
    
        commit 22fdd136fd549d69030ae375f56539540a291950
        Author: Jens-Heiner Rechtien <[email protected]>
        Date:   Thu Sep 27 07:51:18 2007 +0000
        INTEGRATION: CWS swwarnings (1.35.128); FILE MERGED
        2007/08/20 15:32:01 tl 1.35.128.5: RESYNC: (1.38-1.40); FILE MERGED
    
    Change-Id: I141257483abf25c4af4a457bb4c181c38ebc788d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165032
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <[email protected]>

diff --git a/sw/inc/fesh.hxx b/sw/inc/fesh.hxx
index c84ff8646799..8a88674e124b 100644
--- a/sw/inc/fesh.hxx
+++ b/sw/inc/fesh.hxx
@@ -779,7 +779,7 @@ public:
     SW_DLLPUBLIC tools::Long GetSectionWidth( SwFormat const & rFormat ) const;
 
     SW_DLLPUBLIC void GetConnectableFrameFormats
-    (SwFrameFormat & rFormat, const OUString & rReference, bool bSuccessors,
+    (SwFrameFormat & rFormat, std::u16string_view rReference, bool bSuccessors,
      std::vector< OUString > & aPrevPageVec,
      std::vector< OUString > & aThisPageVec,
      std::vector< OUString > & aNextPageVec,
diff --git a/sw/source/core/frmedt/fefly1.cxx b/sw/source/core/frmedt/fefly1.cxx
index 93ad4212cf65..4529e175afb3 100644
--- a/sw/source/core/frmedt/fefly1.cxx
+++ b/sw/source/core/frmedt/fefly1.cxx
@@ -1920,7 +1920,7 @@ static sal_uInt16 SwFormatGetPageNum(const 
SwFlyFrameFormat * pFormat)
 }
 
 void SwFEShell::GetConnectableFrameFormats(SwFrameFormat & rFormat,
-                                      const OUString & rReference,
+                                      std::u16string_view rReference,
                                       bool bSuccessors,
                                       std::vector< OUString > & aPrevPageVec,
                                       std::vector< OUString > & aThisPageVec,
@@ -1944,8 +1944,6 @@ void SwFEShell::GetConnectableFrameFormats(SwFrameFormat 
& rFormat,
     /* potential successors resp. predecessors */
     std::vector< const SwFrameFormat * > aTmpSpzArray;
 
-    mxDoc->FindFlyByName(rReference);
-
     for (size_t n = 0; n < nCnt; ++n)
     {
         const SwFrameFormat & rFormat1 = *(mxDoc->GetFlyNum(n, 
FLYCNTTYPE_FRM));

Reply via email to