diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-08-31 22:52:10 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-09-06 12:12:29 +0200 |
commit | bbf64c7802ad729082434abb03a5851b5e6b3bb0 (patch) | |
tree | 7adbc350a8dbd662c06cd518584cc7d8bc6b71a1 /sw/source/core/text/itrpaint.cxx | |
parent | dab5d58acc983c6234bcd2975eb0e8678608743e (diff) |
sal_uInt16 to more proper types, constify, avoid unneeded casts
Change-Id: I6e7d2c9861e9e004a48595d77b919c37409142f1
Diffstat (limited to 'sw/source/core/text/itrpaint.cxx')
-rw-r--r-- | sw/source/core/text/itrpaint.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/text/itrpaint.cxx b/sw/source/core/text/itrpaint.cxx index c9f8ff1ca140..f1f2a202b624 100644 --- a/sw/source/core/text/itrpaint.cxx +++ b/sw/source/core/text/itrpaint.cxx @@ -558,7 +558,7 @@ void SwTxtPainter::CheckSpecialUnderline( const SwLinePortion* pPor, sal_uLong nSumHeight = 0; sal_uLong nBold = 0; sal_uInt16 nMaxBaseLineOfst = 0; - sal_uInt16 nNumberOfPortions = 0; + int nNumberOfPortions = 0; while( nTmpIdx <= nUnderEnd && pPor ) { @@ -583,7 +583,7 @@ void SwTxtPainter::CheckSpecialUnderline( const SwLinePortion* pPor, // and the font of the lowest portion. if ( nAdjustBaseLine ) { - sal_uInt16 nTmpBaseLineOfst = AdjustBaseLine( *pCurr, pPor ); + const sal_uInt16 nTmpBaseLineOfst = AdjustBaseLine( *pCurr, pPor ); if ( nMaxBaseLineOfst < nTmpBaseLineOfst ) { nMaxBaseLineOfst = nTmpBaseLineOfst; |