sw/inc/redline.hxx |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

New commits:
commit a6d4a664869a8bcbd01053cf152d7f455939ab46
Author:     Noel Grandin <[email protected]>
AuthorDate: Thu Jul 21 09:05:03 2022 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Thu Jul 21 10:29:13 2022 +0200

    shrink size of SwRangeRedline
    
    by re-arranging members, remove holes in the structure
    
    Change-Id: I934d4867f29bdd1bfd4e6afb8d8ed0ccc88ca219
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137282
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <[email protected]>

diff --git a/sw/inc/redline.hxx b/sw/inc/redline.hxx
index 37c7e536d52c..dfbfa177a855 100644
--- a/sw/inc/redline.hxx
+++ b/sw/inc/redline.hxx
@@ -157,11 +157,10 @@ class SW_DLLPUBLIC SwRangeRedline final : public SwPaM
 {
     SwRedlineData* m_pRedlineData;
     SwNodeIndex* m_pContentSect;
+    std::optional<tools::Long> m_oLOKLastNodeTop;
+    sal_uInt32 m_nId;
     bool m_bDelLastPara : 1;
     bool m_bIsVisible : 1;
-    sal_uInt32 m_nId;
-
-    std::optional<tools::Long> m_oLOKLastNodeTop;
 
     void MoveToSection();
     void CopyToSection();
@@ -178,7 +177,7 @@ public:
     SwRangeRedline(SwRedlineData* pData, const SwPosition& rPos,
                bool bDelLP) :
         SwPaM( rPos ), m_pRedlineData( pData ), m_pContentSect( nullptr ),
-        m_bDelLastPara( bDelLP ), m_bIsVisible( true ), m_nId( s_nLastId++ )
+        m_nId( s_nLastId++ ), m_bDelLastPara( bDelLP ), m_bIsVisible( true )
     {}
     SwRangeRedline( const SwRangeRedline& );
     virtual ~SwRangeRedline() override;

Reply via email to