Kaydet (Commit) 6ac930d2 authored tarafından Caolán McNamara's avatar Caolán McNamara

cppcheck: cstyleCast

Change-Id: I0cc54e443793dda9bd11a907cc79b54dab3810ad
üst 399fa0ee
...@@ -550,7 +550,7 @@ void SwTxtPainter::CheckSpecialUnderline( const SwLinePortion* pPor, ...@@ -550,7 +550,7 @@ void SwTxtPainter::CheckSpecialUnderline( const SwLinePortion* pPor,
{ {
// here starts the algorithm for calculating the underline font // here starts the algorithm for calculating the underline font
SwScriptInfo& rScriptInfo = GetInfo().GetParaPortion()->GetScriptInfo(); SwScriptInfo& rScriptInfo = GetInfo().GetParaPortion()->GetScriptInfo();
SwAttrIter aIter( *(SwTxtNode*)GetInfo().GetTxtFrm()->GetTxtNode(), SwAttrIter aIter( *GetInfo().GetTxtFrm()->GetTxtNode(),
rScriptInfo ); rScriptInfo );
sal_Int32 nTmpIdx = nIndx; sal_Int32 nTmpIdx = nIndx;
......
...@@ -378,7 +378,11 @@ inline void SwParaPortion::FormatReset() ...@@ -378,7 +378,11 @@ inline void SwParaPortion::FormatReset()
} }
inline SwLinePortion *SwLineLayout::GetFirstPortion() const inline SwLinePortion *SwLineLayout::GetFirstPortion() const
{ return( pPortion ? pPortion : (SwLinePortion*)this ); } {
const SwLinePortion *pRet = pPortion ? pPortion : this;
return const_cast<SwLinePortion*>(pRet);
}
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment