diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2023-11-01 13:09:13 +0100 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2023-11-02 10:47:44 +0100 |
commit | a1b0fc647d14dc36e9fe238d5bfc81ebcfa1d5dc (patch) | |
tree | 1ccaa1c5ba1b948f0eef88132db71a296393d1f9 /sw | |
parent | 5726be1314517d47dd733aabe64a3d85cce094c5 (diff) |
sw: SwLinePortion::Move() should be const
Change-Id: I79938773034fbe708ba867960c9effecb2e24a59
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158766
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/text/porlin.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/text/porlin.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
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; |