sw/source/core/text/porlin.cxx |    4 ++--
 sw/source/core/text/porlin.hxx |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit a1b0fc647d14dc36e9fe238d5bfc81ebcfa1d5dc
Author:     Michael Stahl <michael.st...@allotropia.de>
AuthorDate: Wed Nov 1 13:09:13 2023 +0100
Commit:     Michael Stahl <michael.st...@allotropia.de>
CommitDate: Thu Nov 2 10:47:44 2023 +0100

    sw: SwLinePortion::Move() should be const
    
    Change-Id: I79938773034fbe708ba867960c9effecb2e24a59
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158766
    Tested-by: Michael Stahl <michael.st...@allotropia.de>
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>

diff --git a/sw/source/core/text/porlin.cxx b/sw/source/core/text/porlin.cxx
index 4421f107f27f..fdd0ffba53b9 100644
--- a/sw/source/core/text/porlin.cxx
+++ b/sw/source/core/text/porlin.cxx
@@ -269,7 +269,7 @@ bool SwLinePortion::Format( SwTextFormatInfo &rInf )
 void SwLinePortion::FormatEOL( SwTextFormatInfo & )
 { }
 
-void SwLinePortion::Move( SwTextPaintInfo &rInf )
+void SwLinePortion::Move(SwTextPaintInfo & rInf) const
 {
     bool bB2T = rInf.GetDirection() == DIR_BOTTOM2TOP;
     const bool bFrameDir = rInf.GetTextFrame()->IsRightToLeft();
@@ -300,7 +300,7 @@ void SwLinePortion::Move( SwTextPaintInfo &rInf )
         else
             rInf.X( rInf.X() + PrtWidth() );
     }
-    if( IsMultiPortion() && static_cast<SwMultiPortion*>(this)->HasTabulator() 
)
+    if (IsMultiPortion() && static_cast<SwMultiPortion 
const*>(this)->HasTabulator())
         rInf.IncSpaceIdx();
 
     rInf.SetIdx( rInf.GetIdx() + GetLen() );
diff --git a/sw/source/core/text/porlin.hxx b/sw/source/core/text/porlin.hxx
index 5ce25a3dd76b..8a43d1cde6e9 100644
--- a/sw/source/core/text/porlin.hxx
+++ b/sw/source/core/text/porlin.hxx
@@ -160,7 +160,7 @@ public:
     virtual bool Format( SwTextFormatInfo &rInf );
     // Is called for the line's last portion
     virtual void FormatEOL( SwTextFormatInfo &rInf );
-            void Move( SwTextPaintInfo &rInf );
+            void Move(SwTextPaintInfo & rInf) const;
 
     // For SwTextSlot
     virtual bool GetExpText( const SwTextSizeInfo &rInf, OUString &rText ) 
const;

Reply via email to