diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-08-13 20:20:42 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-08-16 09:10:19 +0200 |
commit | a00c47afd4cf379ce2b22f3c33bb7975a5a6366a (patch) | |
tree | 028c850a7c4bfc585516d2e097dca52cd73cc31e /accessibility | |
parent | 800b0241c213b42dada56ca41a6f9e02eb541a23 (diff) |
sal_uInt16 to sal_Int32
Change-Id: Ia693dcbcfaa0349ef13466bb2eed877c5823f5bb
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/source/extended/textwindowaccessibility.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/accessibility/source/extended/textwindowaccessibility.cxx b/accessibility/source/extended/textwindowaccessibility.cxx index 2224fecb99bd..23b7b1e903ab 100644 --- a/accessibility/source/extended/textwindowaccessibility.cxx +++ b/accessibility/source/extended/textwindowaccessibility.cxx @@ -1373,10 +1373,8 @@ Document::retrieveParagraphLineBoundary( Paragraph const * pParagraph, ::sal_uInt16 nLineCount = m_rEngine.GetLineCount( nNumber ); for ( ::sal_uInt16 nLine = 0; nLine < nLineCount; ++nLine ) { - ::sal_Int32 nLineLength = static_cast< ::sal_Int32 >( - m_rEngine.GetLineLen( nNumber, nLine ) ); nLineStart = nLineEnd; - nLineEnd += nLineLength; + nLineEnd += m_rEngine.GetLineLen( nNumber, nLine ); if ( nIndex >= nLineStart && ( ( nLine == nLineCount - 1 ) ? nIndex <= nLineEnd : nIndex < nLineEnd ) ) { aBoundary.startPos = nLineStart; @@ -1412,10 +1410,8 @@ Document::retrieveParagraphBoundaryOfLine( Paragraph const * pParagraph, ::sal_Int32 nLineEnd = 0; for ( ::sal_Int32 nLine = 0; nLine <= nLineNo; ++nLine ) { - ::sal_Int32 nLineLength = static_cast< ::sal_Int32 >( - m_rEngine.GetLineLen( nNumber, nLine ) ); nLineStart = nLineEnd; - nLineEnd += nLineLength; + nLineEnd += m_rEngine.GetLineLen( nNumber, nLine ); } aBoundary.startPos = nLineStart; |