sw/source/core/text/portxt.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit f011086f38775182ed3e05fc7a79ddfd8605af19
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Thu Dec 28 19:02:44 2023 +0100
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Fri Dec 29 04:58:21 2023 +0100

    Avoid static_casts
    
    Change-Id: I57d7aa4cf7dbadc5a40b69da789a16a269c92544
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161326
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/sw/source/core/text/portxt.cxx b/sw/source/core/text/portxt.cxx
index bcc547d1796b..1042dcf54165 100644
--- a/sw/source/core/text/portxt.cxx
+++ b/sw/source/core/text/portxt.cxx
@@ -517,9 +517,9 @@ void SwTextPortion::FormatEOL( SwTextFormatInfo &rInf )
     Width( Width() - nBlankSize );
     rInf.X( rInf.X() - nBlankSize );
     SetLen( GetLen() - nHoleLen );
-    SwLinePortion *pHole = new SwHolePortion( *this );
-    static_cast<SwHolePortion *>( pHole )->SetBlankWidth( nBlankSize );
-    static_cast<SwHolePortion *>( pHole )->SetLen( nHoleLen );
+    SwHolePortion* pHole = new SwHolePortion(*this);
+    pHole->SetBlankWidth(nBlankSize);
+    pHole->SetLen(nHoleLen);
     Insert( pHole );
 
 }

Reply via email to