From 2a57ea7a67a016b09d91cbf0e97c22e6909a298c Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Mon, 27 Jul 2015 22:35:56 +0200 Subject: sal_uInt16 to sal_Int32 Change-Id: I723d7c187ec186ccc68f061ba2357712a5f31869 --- vcl/source/edit/textdoc.cxx | 2 +- vcl/source/edit/texteng.cxx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'vcl/source/edit') diff --git a/vcl/source/edit/textdoc.cxx b/vcl/source/edit/textdoc.cxx index bca417af0558..fe8d4857d737 100644 --- a/vcl/source/edit/textdoc.cxx +++ b/vcl/source/edit/textdoc.cxx @@ -474,7 +474,7 @@ sal_uLong TextDoc::GetTextLen( const sal_Unicode* pSep, const TextSelection* pSe { TextNode* pNode = maTextNodes[ nNode ]; - sal_uInt16 nS = 0; + sal_Int32 nS = 0; sal_Int32 nE = pNode->GetText().getLength(); if ( pSel && ( nNode == pSel->GetStart().GetPara() ) ) nS = pSel->GetStart().GetIndex(); diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx index 5b9b0c7cb05f..6c907c09309c 100644 --- a/vcl/source/edit/texteng.cxx +++ b/vcl/source/edit/texteng.cxx @@ -490,8 +490,8 @@ void TextEngine::ImpRemoveChars( const TextPaM& rPaM, sal_uInt16 nChars, SfxUndo OUString aStr( pNode->GetText().copy( rPaM.GetIndex(), nChars ) ); // check if attributes are being deleted or changed - sal_uInt16 nStart = rPaM.GetIndex(); - sal_uInt16 nEnd = nStart + nChars; + const sal_Int32 nStart = rPaM.GetIndex(); + const sal_Int32 nEnd = nStart + nChars; for ( sal_uInt16 nAttr = pNode->GetCharAttribs().Count(); nAttr; ) { TextCharAttrib& rAttr = pNode->GetCharAttribs().GetAttrib( --nAttr ); @@ -2542,7 +2542,7 @@ bool TextEngine::Write( SvStream& rOutput, const TextSelection* pSel, bool bHTML { TextNode* pNode = mpDoc->GetNodes()[ nPara ]; - sal_uInt16 nStartPos = 0; + sal_Int32 nStartPos = 0; sal_Int32 nEndPos = pNode->GetText().getLength(); if ( nPara == aSel.GetStart().GetPara() ) nStartPos = aSel.GetStart().GetIndex(); -- cgit