sw/source/core/layout/wsfrm.cxx |    9 +++++++++
 sw/source/core/text/xmldump.cxx |    9 ---------
 2 files changed, 9 insertions(+), 9 deletions(-)

New commits:
commit 39fcc32376bcafde8b1e582cbb5e8f23fed868ce
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Thu Oct 26 19:53:23 2023 +0200
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Fri Oct 27 08:00:02 2023 +0200

    sw layout xml dump: move SwFrame::dumpChildrenAsXml()
    
    Next to the rest of the SwFrame code.
    
    So it's more likely that it gets updated as SwAnchoredObject changes.
    
    Change-Id: I83343abf495832265ac7634bb7b31de89b63f039
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158511
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>

diff --git a/sw/source/core/layout/wsfrm.cxx b/sw/source/core/layout/wsfrm.cxx
index 195618aa5b7b..7fdd19ace322 100644
--- a/sw/source/core/layout/wsfrm.cxx
+++ b/sw/source/core/layout/wsfrm.cxx
@@ -313,6 +313,15 @@ void SwFrame::dumpAsXml(xmlTextWriterPtr pWriter) const
     dumpChildrenAsXml(pWriter);
 }
 
+void SwFrame::dumpChildrenAsXml( xmlTextWriterPtr writer ) const
+{
+    const SwFrame *pFrame = GetLower(  );
+    for ( ; pFrame != nullptr; pFrame = pFrame->GetNext(  ) )
+    {
+        pFrame->dumpAsXml( writer );
+    }
+}
+
 SwFrame::SwFrame( sw::BroadcastingModify *pMod, SwFrame* pSib )
 :   SwClient( pMod ),
     mpRoot( pSib ? pSib->getRootFrame() : nullptr ),
diff --git a/sw/source/core/text/xmldump.cxx b/sw/source/core/text/xmldump.cxx
index 8284ac3fdc58..019866a9acbd 100644
--- a/sw/source/core/text/xmldump.cxx
+++ b/sw/source/core/text/xmldump.cxx
@@ -243,13 +243,4 @@ void SwFrame::dumpAsXmlAttributes( xmlTextWriterPtr writer 
) const
     }
 }
 
-void SwFrame::dumpChildrenAsXml( xmlTextWriterPtr writer ) const
-{
-    const SwFrame *pFrame = GetLower(  );
-    for ( ; pFrame != nullptr; pFrame = pFrame->GetNext(  ) )
-    {
-        pFrame->dumpAsXml( writer );
-    }
-}
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Reply via email to