summaryrefslogtreecommitdiff
path: root/accessibility/source/extended/textwindowaccessibility.cxx
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2015-08-13 20:20:42 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2015-08-16 09:10:19 +0200
commita00c47afd4cf379ce2b22f3c33bb7975a5a6366a (patch)
tree028c850a7c4bfc585516d2e097dca52cd73cc31e /accessibility/source/extended/textwindowaccessibility.cxx
parent800b0241c213b42dada56ca41a6f9e02eb541a23 (diff)
sal_uInt16 to sal_Int32
Change-Id: Ia693dcbcfaa0349ef13466bb2eed877c5823f5bb
Diffstat (limited to 'accessibility/source/extended/textwindowaccessibility.cxx')
-rw-r--r--accessibility/source/extended/textwindowaccessibility.cxx8
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;