From 0fab2b1dcd13c0fb9d3bc82e5d8134afbd5ea237 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 2 Oct 2020 14:51:04 +0100 Subject: change these sal_uLong to sal_Size MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I5823283702b38d4b928cf0bee8645eafd10fe58f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103873 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sw/source/filter/ascii/parasc.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sw/source/filter') diff --git a/sw/source/filter/ascii/parasc.cxx b/sw/source/filter/ascii/parasc.cxx index 73536d36213e..bc97ffd3b6b4 100644 --- a/sw/source/filter/ascii/parasc.cxx +++ b/sw/source/filter/ascii/parasc.cxx @@ -255,7 +255,7 @@ ErrCode SwASCIIParser::ReadChars() aEmpty.GetLanguage() == rOpt.GetLanguage() && aEmpty.GetParaFlags() == rOpt.GetParaFlags()) { - sal_uLong nLen, nOrig; + sal_Size nLen, nOrig; nOrig = nLen = rInput.ReadBytes(pArr.get(), ASC_BUFFLEN); rtl_TextEncoding eCharSet; LineEnd eLineEnd; @@ -297,7 +297,7 @@ ErrCode SwASCIIParser::ReadChars() } std::unique_ptr aWork; - sal_uLong nArrOffset = 0; + sal_Size nArrOffset = 0; do { if( pStt >= pEnd ) @@ -306,7 +306,7 @@ ErrCode SwASCIIParser::ReadChars() InsertText( OUString( pLastStt )); // Read a new block - sal_uLong lGCount; + sal_Size lGCount; if( ERRCODE_NONE != rInput.GetError() || 0 == (lGCount = rInput.ReadBytes( pArr.get() + nArrOffset, ASC_BUFFLEN - nArrOffset ))) @@ -318,7 +318,7 @@ ErrCode SwASCIIParser::ReadChars() to convert this cycle includes them. If we found 0 following bytes then we ignore the previous partial character. */ - lGCount+=nArrOffset; + lGCount += nArrOffset; if( hConverter ) { @@ -354,7 +354,7 @@ ErrCode SwASCIIParser::ReadChars() if( bSwapUnicode ) { char* pF = pArr.get(), *pN = pArr.get() + 1; - for( sal_uLong n = 0; n < nChars; ++n, pF += 2, pN += 2 ) + for (sal_Size n = 0; n < nChars; ++n, pF += 2, pN += 2) { char c = *pF; *pF = *pN; -- cgit